Class: SBF::Client::FullKid
- Inherits:
-
Kid
- Object
- BaseEntity
- TopLevelEntity
- Kid
- SBF::Client::FullKid
- Extended by:
- Forwardable
- Defined in:
- lib/stbaldricks/entities/kid.rb
Direct Known Subclasses
Constant Summary
Constants inherited from TopLevelEntity
TopLevelEntity::DEFAULT_CLASS_ACTIONS, TopLevelEntity::DEFAULT_CRUD_ACTIONS, TopLevelEntity::DEFAULT_ENDPOINT, TopLevelEntity::DEFAULT_INSTANCE_ACTIONS
Constants inherited from BaseEntity
Instance Attribute Summary collapse
-
#ambassador_year ⇒ Object
Returns the value of attribute ambassador_year.
-
#birthday ⇒ Object
Returns the value of attribute birthday.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#date_activated ⇒ Object
Returns the value of attribute date_activated.
-
#date_of_passing ⇒ Object
Returns the value of attribute date_of_passing.
-
#date_packet_sent ⇒ Object
Returns the value of attribute date_packet_sent.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#display_name_override ⇒ Object
Returns the value of attribute display_name_override.
-
#ethnicity ⇒ Object
Returns the value of attribute ethnicity.
-
#gender ⇒ Object
Returns the value of attribute gender.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modified_at ⇒ Object
Returns the value of attribute modified_at.
-
#modified_by ⇒ Object
Returns the value of attribute modified_by.
-
#name ⇒ Object
Returns the value of attribute name.
-
#status ⇒ Object
Returns the value of attribute status.
-
#web_message ⇒ Object
Returns the value of attribute web_message.
Attributes inherited from BaseEntity
Instance Method Summary collapse
Methods included from Entities::DefaultCacheable
Methods inherited from TopLevelEntity
_endpoint, action, actions, blacklist_action, class_action, define_endpoint, endpoint, #endpoint, instance_action
Methods included from Entities::Cacheable
Methods inherited from BaseEntity
allow_instantiation?, attr_accessor, attr_reader, attr_writer, collection_attributes, defined_attributes, #destroyed?, #dirty_data, entity_attr_accessor, entity_attr_reader, entity_attr_writer, entity_attributes, entity_collection_attr_accessor, entity_collection_attr_reader, entity_collection_attr_writer, #error, inherited, #initialize, #keys_hash, #model_name, multitype_attr_accessor, multitype_attr_reader, multitype_attr_writer, multitype_collection_attr_accessor, multitype_collection_attr_reader, multitype_collection_attr_writer, #not_provided_attributes, optional_attributes, #persisted?, #reload!, #reload_recursive, #rollback!, #to_hash, #to_json, #to_partial
Methods included from EntityResponseConcern
#add_errors, #data, #error?, #errors?, #errors_http_code=, #http_code, #success?
Constructor Details
This class inherits a constructor from SBF::Client::BaseEntity
Instance Attribute Details
#ambassador_year ⇒ Object
Returns the value of attribute ambassador_year.
141 142 143 |
# File 'lib/stbaldricks/entities/kid.rb', line 141 def ambassador_year @ambassador_year end |
#birthday ⇒ Object
Returns the value of attribute birthday.
135 136 137 |
# File 'lib/stbaldricks/entities/kid.rb', line 135 def birthday @birthday end |
#created_at ⇒ Object
Returns the value of attribute created_at.
156 157 158 |
# File 'lib/stbaldricks/entities/kid.rb', line 156 def created_at @created_at end |
#date_activated ⇒ Object
Returns the value of attribute date_activated.
142 143 144 |
# File 'lib/stbaldricks/entities/kid.rb', line 142 def date_activated @date_activated end |
#date_of_passing ⇒ Object
Returns the value of attribute date_of_passing.
137 138 139 |
# File 'lib/stbaldricks/entities/kid.rb', line 137 def date_of_passing @date_of_passing end |
#date_packet_sent ⇒ Object
Returns the value of attribute date_packet_sent.
143 144 145 |
# File 'lib/stbaldricks/entities/kid.rb', line 143 def date_packet_sent @date_packet_sent end |
#display_name ⇒ Object
Returns the value of attribute display_name.
138 139 140 |
# File 'lib/stbaldricks/entities/kid.rb', line 138 def display_name @display_name end |
#display_name_override ⇒ Object
Returns the value of attribute display_name_override.
139 140 141 |
# File 'lib/stbaldricks/entities/kid.rb', line 139 def display_name_override @display_name_override end |
#ethnicity ⇒ Object
Returns the value of attribute ethnicity.
136 137 138 |
# File 'lib/stbaldricks/entities/kid.rb', line 136 def ethnicity @ethnicity end |
#gender ⇒ Object
Returns the value of attribute gender.
134 135 136 |
# File 'lib/stbaldricks/entities/kid.rb', line 134 def gender @gender end |
#id ⇒ Object
Returns the value of attribute id.
132 133 134 |
# File 'lib/stbaldricks/entities/kid.rb', line 132 def id @id end |
#modified_at ⇒ Object
Returns the value of attribute modified_at.
157 158 159 |
# File 'lib/stbaldricks/entities/kid.rb', line 157 def modified_at @modified_at end |
#modified_by ⇒ Object
Returns the value of attribute modified_by.
158 159 160 |
# File 'lib/stbaldricks/entities/kid.rb', line 158 def modified_by @modified_by end |
#name ⇒ Object
Returns the value of attribute name.
140 141 142 |
# File 'lib/stbaldricks/entities/kid.rb', line 140 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
133 134 135 |
# File 'lib/stbaldricks/entities/kid.rb', line 133 def status @status end |
#web_message ⇒ Object
Returns the value of attribute web_message.
148 149 150 |
# File 'lib/stbaldricks/entities/kid.rb', line 148 def @web_message end |
Instance Method Details
#active? ⇒ Boolean
164 165 166 |
# File 'lib/stbaldricks/entities/kid.rb', line 164 def active? status == SBF::Client::Kid::Status::ACTIVE end |
#fundraising_page_url ⇒ Object
160 161 162 |
# File 'lib/stbaldricks/entities/kid.rb', line 160 def fundraising_page_url web_page&.url end |