Class: SBF::Client::Person::Occupation
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- SBF::Client::Person::Occupation
- 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
Instance Attribute Summary collapse
-
#details ⇒ Object
TODO: Need to rework this.
-
#is_educator ⇒ Object
readonly
Returns the value of attribute is_educator.
-
#is_finance ⇒ Object
readonly
Returns the value of attribute is_finance.
-
#is_military ⇒ Object
readonly
Returns the value of attribute is_military.
-
#is_other ⇒ Object
readonly
Returns the value of attribute is_other.
-
#is_student ⇒ Object
readonly
Returns the value of attribute is_student.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from BaseEntity
Method Summary
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
#details ⇒ Object
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.
344 345 346 |
# File 'lib/stbaldricks/entities/person.rb', line 344 def details @details end |
#is_educator ⇒ Object (readonly)
Returns the value of attribute is_educator.
339 340 341 |
# File 'lib/stbaldricks/entities/person.rb', line 339 def is_educator @is_educator end |
#is_finance ⇒ Object (readonly)
Returns the value of attribute is_finance.
339 340 341 |
# File 'lib/stbaldricks/entities/person.rb', line 339 def is_finance @is_finance end |
#is_military ⇒ Object (readonly)
Returns the value of attribute is_military.
339 340 341 |
# File 'lib/stbaldricks/entities/person.rb', line 339 def is_military @is_military end |
#is_other ⇒ Object (readonly)
Returns the value of attribute is_other.
339 340 341 |
# File 'lib/stbaldricks/entities/person.rb', line 339 def is_other @is_other end |
#is_student ⇒ Object (readonly)
Returns the value of attribute is_student.
339 340 341 |
# File 'lib/stbaldricks/entities/person.rb', line 339 def is_student @is_student end |
#type ⇒ Object
Returns the value of attribute type.
338 339 340 |
# File 'lib/stbaldricks/entities/person.rb', line 338 def type @type end |