Class: SBF::Client::FullKid

Inherits:
Kid show all
Defined in:
lib/stbaldricks/entities/kid.rb

Direct Known Subclasses

KidHonor::FullKid, Photo::FullKid

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

BaseEntity::ELSE

Instance Attribute Summary collapse

Attributes inherited from BaseEntity

#errors

Instance Method Summary collapse

Methods included from Entities::DefaultCacheable

included

Methods inherited from TopLevelEntity

_endpoint, action, actions, blacklist_action, class_action, define_endpoint, endpoint, #endpoint, instance_action

Methods included from Entities::Cacheable

#cache_id, included

Methods inherited from BaseEntity

#add_errors, allow_instantiation?, attr_accessor, attr_reader, attr_writer, attributes, #attributes=, collection_attributes, entity_attr_accessor, entity_attr_reader, entity_attr_writer, entity_attributes, entity_collection_attr_accessor, entity_collection_attr_reader, entity_collection_attr_writer, inherited, #initialize, #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?, #to_hash, #to_json

Constructor Details

This class inherits a constructor from SBF::Client::BaseEntity

Instance Attribute Details

#birthdayObject

Returns the value of attribute birthday.



156
157
158
# File 'lib/stbaldricks/entities/kid.rb', line 156

def birthday
  @birthday
end

#created_atObject

Returns the value of attribute created_at.



174
175
176
# File 'lib/stbaldricks/entities/kid.rb', line 174

def created_at
  @created_at
end

#date_of_passingObject

Returns the value of attribute date_of_passing.



158
159
160
# File 'lib/stbaldricks/entities/kid.rb', line 158

def date_of_passing
  @date_of_passing
end

#display_nameObject

Returns the value of attribute display_name.



159
160
161
# File 'lib/stbaldricks/entities/kid.rb', line 159

def display_name
  @display_name
end

#display_name_overrideObject

Returns the value of attribute display_name_override.



160
161
162
# File 'lib/stbaldricks/entities/kid.rb', line 160

def display_name_override
  @display_name_override
end

#ethnicityObject

Returns the value of attribute ethnicity.



157
158
159
# File 'lib/stbaldricks/entities/kid.rb', line 157

def ethnicity
  @ethnicity
end

#genderObject

Returns the value of attribute gender.



155
156
157
# File 'lib/stbaldricks/entities/kid.rb', line 155

def gender
  @gender
end

#idObject

Returns the value of attribute id.



153
154
155
# File 'lib/stbaldricks/entities/kid.rb', line 153

def id
  @id
end

#modified_atObject

Returns the value of attribute modified_at.



175
176
177
# File 'lib/stbaldricks/entities/kid.rb', line 175

def modified_at
  @modified_at
end

#modified_byObject

Returns the value of attribute modified_by.



176
177
178
# File 'lib/stbaldricks/entities/kid.rb', line 176

def modified_by
  @modified_by
end

#nameObject

Returns the value of attribute name.



161
162
163
# File 'lib/stbaldricks/entities/kid.rb', line 161

def name
  @name
end

#statusObject

Returns the value of attribute status.



154
155
156
# File 'lib/stbaldricks/entities/kid.rb', line 154

def status
  @status
end

#web_messageObject

Returns the value of attribute web_message.



166
167
168
# File 'lib/stbaldricks/entities/kid.rb', line 166

def web_message
  @web_message
end

Instance Method Details

#active?Boolean



178
179
180
# File 'lib/stbaldricks/entities/kid.rb', line 178

def active?
  status == SBF::Client::Kid::Status::ACTIVE
end