Class: SBF::Client::FullKid

Inherits:
Kid show all
Extended by:
Forwardable
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

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_yearObject

Returns the value of attribute ambassador_year.



141
142
143
# File 'lib/stbaldricks/entities/kid.rb', line 141

def ambassador_year
  @ambassador_year
end

#birthdayObject

Returns the value of attribute birthday.



135
136
137
# File 'lib/stbaldricks/entities/kid.rb', line 135

def birthday
  @birthday
end

#created_atObject

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_activatedObject

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_passingObject

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_sentObject

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_nameObject

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_overrideObject

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

#ethnicityObject

Returns the value of attribute ethnicity.



136
137
138
# File 'lib/stbaldricks/entities/kid.rb', line 136

def ethnicity
  @ethnicity
end

#genderObject

Returns the value of attribute gender.



134
135
136
# File 'lib/stbaldricks/entities/kid.rb', line 134

def gender
  @gender
end

#idObject

Returns the value of attribute id.



132
133
134
# File 'lib/stbaldricks/entities/kid.rb', line 132

def id
  @id
end

#modified_atObject

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_byObject

Returns the value of attribute modified_by.



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

def modified_by
  @modified_by
end

#nameObject

Returns the value of attribute name.



140
141
142
# File 'lib/stbaldricks/entities/kid.rb', line 140

def name
  @name
end

#statusObject

Returns the value of attribute status.



133
134
135
# File 'lib/stbaldricks/entities/kid.rb', line 133

def status
  @status
end

#web_messageObject

Returns the value of attribute web_message.



148
149
150
# File 'lib/stbaldricks/entities/kid.rb', line 148

def web_message
  @web_message
end

Instance Method Details

#active?Boolean

Returns:



164
165
166
# File 'lib/stbaldricks/entities/kid.rb', line 164

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

#fundraising_page_urlObject



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

def fundraising_page_url
  web_page&.url
end

#suspended?Boolean

Returns:



168
169
170
# File 'lib/stbaldricks/entities/kid.rb', line 168

def suspended?
  status == SBF::Client::Kid::Status::SUSPENDED
end