Class: SBF::Client::FullPerson

Inherits:
Person show all
Defined in:
lib/stbaldricks/entities/person.rb

Direct Known Subclasses

Donation::FullPerson

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 inherited from Person

#league_status_title

Methods included from TypeConcern

#keys_hash

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

#birthdayObject

Returns the value of attribute birthday.



392
393
394
# File 'lib/stbaldricks/entities/person.rb', line 392

def birthday
  @birthday
end

#created_atObject (readonly)

Returns the value of attribute created_at.



408
409
410
# File 'lib/stbaldricks/entities/person.rb', line 408

def created_at
  @created_at
end

#date_last_notified_about_new_donationsObject

Returns the value of attribute date_last_notified_about_new_donations.



412
413
414
# File 'lib/stbaldricks/entities/person.rb', line 412

def date_last_notified_about_new_donations
  @date_last_notified_about_new_donations
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



393
394
395
# File 'lib/stbaldricks/entities/person.rb', line 393

def display_name
  @display_name
end

#display_name_overrideObject

Returns the value of attribute display_name_override.



394
395
396
# File 'lib/stbaldricks/entities/person.rb', line 394

def display_name_override
  @display_name_override
end

#first_and_last_nameObject (readonly)

Returns the value of attribute first_and_last_name.



393
394
395
# File 'lib/stbaldricks/entities/person.rb', line 393

def first_and_last_name
  @first_and_last_name
end

#genderObject

Returns the value of attribute gender.



390
391
392
# File 'lib/stbaldricks/entities/person.rb', line 390

def gender
  @gender
end

#how_createdObject

Returns the value of attribute how_created.



410
411
412
# File 'lib/stbaldricks/entities/person.rb', line 410

def how_created
  @how_created
end

#idObject

Returns the value of attribute id.



385
386
387
# File 'lib/stbaldricks/entities/person.rb', line 385

def id
  @id
end

#is_minorObject

Returns the value of attribute is_minor.



391
392
393
# File 'lib/stbaldricks/entities/person.rb', line 391

def is_minor
  @is_minor
end

#league_statusObject (readonly)

Returns the value of attribute league_status.



396
397
398
# File 'lib/stbaldricks/entities/person.rb', line 396

def league_status
  @league_status
end

#modified_atObject (readonly)

Returns the value of attribute modified_at.



408
409
410
# File 'lib/stbaldricks/entities/person.rb', line 408

def modified_at
  @modified_at
end

#modified_byObject

Returns the value of attribute modified_by.



409
410
411
# File 'lib/stbaldricks/entities/person.rb', line 409

def modified_by
  @modified_by
end

#nameObject (readonly)

Returns the value of attribute name.



397
398
399
# File 'lib/stbaldricks/entities/person.rb', line 397

def name
  @name
end

#salesforce_account_idObject

Returns the value of attribute salesforce_account_id.



387
388
389
# File 'lib/stbaldricks/entities/person.rb', line 387

def 
  @salesforce_account_id
end

#salesforce_idObject

Returns the value of attribute salesforce_id.



386
387
388
# File 'lib/stbaldricks/entities/person.rb', line 386

def salesforce_id
  @salesforce_id
end

#selected_shipping_methodObject

Returns the value of attribute selected_shipping_method.



406
407
408
# File 'lib/stbaldricks/entities/person.rb', line 406

def selected_shipping_method
  @selected_shipping_method
end

#statusObject

Returns the value of attribute status.



389
390
391
# File 'lib/stbaldricks/entities/person.rb', line 389

def status
  @status
end

#typeObject

Returns the value of attribute type.



388
389
390
# File 'lib/stbaldricks/entities/person.rb', line 388

def type
  @type
end

#years_as_organizerObject

Returns the value of attribute years_as_organizer.



395
396
397
# File 'lib/stbaldricks/entities/person.rb', line 395

def years_as_organizer
  @years_as_organizer
end

#years_as_participantObject

Returns the value of attribute years_as_participant.



395
396
397
# File 'lib/stbaldricks/entities/person.rb', line 395

def years_as_participant
  @years_as_participant
end

Instance Method Details

#active?Boolean

Returns:



414
415
416
# File 'lib/stbaldricks/entities/person.rb', line 414

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