Class: SBF::Client::Person::Occupation

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/stbaldricks/entities/person.rb

Defined Under Namespace

Modules: EducatorType, MilitaryBranchType, MilitaryStatusType, StudentType, Type Classes: EducationDetails, FinanceDetails, MilitaryDetails

Constant Summary

Constants inherited from BaseEntity

BaseEntity::ELSE

Instance Attribute Summary collapse

Attributes inherited from BaseEntity

#errors

Method Summary

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

#detailsObject

TODO: Need to rework this. The details hash needs to contain enough information to be able to determine what type it should be. As it is currently written, it cannot instanitate itself without the information contained in the SBF::Client::Person::Occupation instance.



333
334
335
# File 'lib/stbaldricks/entities/person.rb', line 333

def details
  @details
end

#is_educatorObject (readonly)

Returns the value of attribute is_educator.



328
329
330
# File 'lib/stbaldricks/entities/person.rb', line 328

def is_educator
  @is_educator
end

#is_financeObject (readonly)

Returns the value of attribute is_finance.



328
329
330
# File 'lib/stbaldricks/entities/person.rb', line 328

def is_finance
  @is_finance
end

#is_militaryObject (readonly)

Returns the value of attribute is_military.



328
329
330
# File 'lib/stbaldricks/entities/person.rb', line 328

def is_military
  @is_military
end

#is_otherObject (readonly)

Returns the value of attribute is_other.



328
329
330
# File 'lib/stbaldricks/entities/person.rb', line 328

def is_other
  @is_other
end

#is_studentObject (readonly)

Returns the value of attribute is_student.



328
329
330
# File 'lib/stbaldricks/entities/person.rb', line 328

def is_student
  @is_student
end

#typeObject

Returns the value of attribute type.



327
328
329
# File 'lib/stbaldricks/entities/person.rb', line 327

def type
  @type
end