Class: SBF::Client::FullPerson

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

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 Entities::Cacheable

#cache_id, included

Methods inherited from TopLevelEntity

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

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.



373
374
375
# File 'lib/stbaldricks/entities/person.rb', line 373

def birthday
  @birthday
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#display_nameObject (readonly)

Returns the value of attribute display_name.



374
375
376
# File 'lib/stbaldricks/entities/person.rb', line 374

def display_name
  @display_name
end

#display_name_overrideObject

Returns the value of attribute display_name_override.



375
376
377
# File 'lib/stbaldricks/entities/person.rb', line 375

def display_name_override
  @display_name_override
end

#first_and_last_nameObject (readonly)

Returns the value of attribute first_and_last_name.



374
375
376
# File 'lib/stbaldricks/entities/person.rb', line 374

def first_and_last_name
  @first_and_last_name
end

#genderObject

Returns the value of attribute gender.



371
372
373
# File 'lib/stbaldricks/entities/person.rb', line 371

def gender
  @gender
end

#how_createdObject

Returns the value of attribute how_created.



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

def how_created
  @how_created
end

#idObject

Returns the value of attribute id.



368
369
370
# File 'lib/stbaldricks/entities/person.rb', line 368

def id
  @id
end

#is_minorObject

Returns the value of attribute is_minor.



372
373
374
# File 'lib/stbaldricks/entities/person.rb', line 372

def is_minor
  @is_minor
end

#league_statusObject (readonly)

Returns the value of attribute league_status.



377
378
379
# File 'lib/stbaldricks/entities/person.rb', line 377

def league_status
  @league_status
end

#modified_atObject (readonly)

Returns the value of attribute modified_at.



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

def modified_at
  @modified_at
end

#modified_byObject

Returns the value of attribute modified_by.



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

def modified_by
  @modified_by
end

#nameObject (readonly)

Returns the value of attribute name.



378
379
380
# File 'lib/stbaldricks/entities/person.rb', line 378

def name
  @name
end

#statusObject

Returns the value of attribute status.



370
371
372
# File 'lib/stbaldricks/entities/person.rb', line 370

def status
  @status
end

#typeObject

Returns the value of attribute type.



369
370
371
# File 'lib/stbaldricks/entities/person.rb', line 369

def type
  @type
end

#years_as_organizerObject

Returns the value of attribute years_as_organizer.



376
377
378
# File 'lib/stbaldricks/entities/person.rb', line 376

def years_as_organizer
  @years_as_organizer
end

#years_as_participantObject

Returns the value of attribute years_as_participant.



376
377
378
# File 'lib/stbaldricks/entities/person.rb', line 376

def years_as_participant
  @years_as_participant
end

Instance Method Details

#active?Boolean

Returns:



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

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