Module: Card::Set::TypePlusRight::User::Email
- Extended by:
- Card::Set
- Defined in:
- platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb
Overview
Set: All “+Email” cards on “User” cards
Constant Summary
Constants included from Helpers
Helpers::SET_PATTERN_TEST_REGEXP
Constants included from Event::Api
Class Method Summary collapse
Instance Method Summary collapse
-
#account_email ⇒ Object
-
#content_email ⇒ Object
-
#view: raw ⇒ Object
supports legacy references to
+*email (standard representation is now +*account+*email). -
#virtual? ⇒ Boolean
Methods included from Card::Set
Methods included from I18nScope
Methods included from Registrar
#extended, #finalize_load, #process_base_modules, #register_set
Methods included from Helpers
#format_module, #format_modules, #method_missing, #modules, #pattern_code, #respond_to_missing?, #set_name_parts, #shortname, #underscored_name
Methods included from AdvancedApi
#assign_type, #attachment, #define_set_from_error, #ensure_set, #setting_opts, #stage_method
Methods included from Format
#before, #format, layout_method_name, #view, view_method_name, view_setting_method_name, wrapper_method_name
Methods included from Inheritance
#include_set, #include_set_formats
Methods included from Card::Set::Trait
#card_accessor, #card_reader, #card_writer, #require_field
Methods included from Event::Api
Class Method Details
.source_location ⇒ Object
7 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb', line 7 def self.source_location; "/Users/ethan/dev/decko/gem/mod/account/set/type_plus_right/user/email.rb"; end |
Instance Method Details
#account_email ⇒ Object
22 23 24 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb', line 22 def account_email left&.account&.email end |
#content_email ⇒ Object
18 19 20 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb', line 18 def content_email content if real? end |
#view: raw ⇒ Object
supports legacy references to
14 15 16 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb', line 14 view :raw do card.content_email || card.account_email || "" end |
#virtual? ⇒ Boolean
8 9 10 |
# File 'platypus/tmp/set/gem-defaults/mod014-account/type_plus_right/user/email.rb', line 8 def virtual? new? end |