class SBF::Client::Person::Occupation
Attributes
details[RW]
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.
is_educator[R]
is_finance[R]
is_military[R]
is_other[R]
is_student[R]
type[RW]
Public Instance Methods
details=(value)
click to toggle source
# File lib/stbaldricks/entities/person.rb, line 345 def details=(value) details_will_change! if educator? || student? @details = SBF::Client::Person::Occupation::EducationDetails.new(value) elsif military? @details = SBF::Client::Person::Occupation::MilitaryDetails.new(value) elsif finance? || other? @details = SBF::Client::Person::Occupation::FinanceDetails.new(value) end end