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
-
#birthday ⇒ Object
Returns the value of attribute birthday.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#date_of_passing ⇒ Object
Returns the value of attribute date_of_passing.
-
#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, attributes, collection_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
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
#birthday ⇒ Object
Returns the value of attribute birthday.
160 161 162 |
# File 'lib/stbaldricks/entities/kid.rb', line 160 def birthday @birthday end |
#created_at ⇒ Object
Returns the value of attribute created_at.
179 180 181 |
# File 'lib/stbaldricks/entities/kid.rb', line 179 def created_at @created_at end |
#date_of_passing ⇒ Object
Returns the value of attribute date_of_passing.
162 163 164 |
# File 'lib/stbaldricks/entities/kid.rb', line 162 def date_of_passing @date_of_passing end |
#display_name ⇒ Object
Returns the value of attribute display_name.
163 164 165 |
# File 'lib/stbaldricks/entities/kid.rb', line 163 def display_name @display_name end |
#display_name_override ⇒ Object
Returns the value of attribute display_name_override.
164 165 166 |
# File 'lib/stbaldricks/entities/kid.rb', line 164 def display_name_override @display_name_override end |
#ethnicity ⇒ Object
Returns the value of attribute ethnicity.
161 162 163 |
# File 'lib/stbaldricks/entities/kid.rb', line 161 def ethnicity @ethnicity end |
#gender ⇒ Object
Returns the value of attribute gender.
159 160 161 |
# File 'lib/stbaldricks/entities/kid.rb', line 159 def gender @gender end |
#id ⇒ Object
Returns the value of attribute id.
157 158 159 |
# File 'lib/stbaldricks/entities/kid.rb', line 157 def id @id end |
#modified_at ⇒ Object
Returns the value of attribute modified_at.
180 181 182 |
# File 'lib/stbaldricks/entities/kid.rb', line 180 def modified_at @modified_at end |
#modified_by ⇒ Object
Returns the value of attribute modified_by.
181 182 183 |
# File 'lib/stbaldricks/entities/kid.rb', line 181 def modified_by @modified_by end |
#name ⇒ Object
Returns the value of attribute name.
165 166 167 |
# File 'lib/stbaldricks/entities/kid.rb', line 165 def name @name end |
#status ⇒ Object
Returns the value of attribute status.
158 159 160 |
# File 'lib/stbaldricks/entities/kid.rb', line 158 def status @status end |
#web_message ⇒ Object
Returns the value of attribute web_message.
170 171 172 |
# File 'lib/stbaldricks/entities/kid.rb', line 170 def @web_message end |
Instance Method Details
#active? ⇒ Boolean
187 188 189 |
# File 'lib/stbaldricks/entities/kid.rb', line 187 def active? status == SBF::Client::Kid::Status::ACTIVE end |
#fundraising_page_url ⇒ Object
183 184 185 |
# File 'lib/stbaldricks/entities/kid.rb', line 183 def fundraising_page_url web_page.url end |