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
#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
#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.
336 337 338 |
# File 'lib/stbaldricks/entities/person.rb', line 336 def details @details end |
#is_educator ⇒ Object (readonly)
Returns the value of attribute is_educator.
331 332 333 |
# File 'lib/stbaldricks/entities/person.rb', line 331 def is_educator @is_educator end |
#is_finance ⇒ Object (readonly)
Returns the value of attribute is_finance.
331 332 333 |
# File 'lib/stbaldricks/entities/person.rb', line 331 def is_finance @is_finance end |
#is_military ⇒ Object (readonly)
Returns the value of attribute is_military.
331 332 333 |
# File 'lib/stbaldricks/entities/person.rb', line 331 def is_military @is_military end |
#is_other ⇒ Object (readonly)
Returns the value of attribute is_other.
331 332 333 |
# File 'lib/stbaldricks/entities/person.rb', line 331 def is_other @is_other end |
#is_student ⇒ Object (readonly)
Returns the value of attribute is_student.
331 332 333 |
# File 'lib/stbaldricks/entities/person.rb', line 331 def is_student @is_student end |
#type ⇒ Object
Returns the value of attribute type.
330 331 332 |
# File 'lib/stbaldricks/entities/person.rb', line 330 def type @type end |