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

allow_instantiation?, attr_accessor, attr_reader, attr_writer, attributes, collection_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

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

#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.



346
347
348
# File 'lib/stbaldricks/entities/person.rb', line 346

def details
  @details
end

#is_educatorObject (readonly)

Returns the value of attribute is_educator.



341
342
343
# File 'lib/stbaldricks/entities/person.rb', line 341

def is_educator
  @is_educator
end

#is_financeObject (readonly)

Returns the value of attribute is_finance.



341
342
343
# File 'lib/stbaldricks/entities/person.rb', line 341

def is_finance
  @is_finance
end

#is_militaryObject (readonly)

Returns the value of attribute is_military.



341
342
343
# File 'lib/stbaldricks/entities/person.rb', line 341

def is_military
  @is_military
end

#is_otherObject (readonly)

Returns the value of attribute is_other.



341
342
343
# File 'lib/stbaldricks/entities/person.rb', line 341

def is_other
  @is_other
end

#is_studentObject (readonly)

Returns the value of attribute is_student.



341
342
343
# File 'lib/stbaldricks/entities/person.rb', line 341

def is_student
  @is_student
end

#typeObject

Returns the value of attribute type.



340
341
342
# File 'lib/stbaldricks/entities/person.rb', line 340

def type
  @type
end