Class: OldBill::V2::Neighbourhoods::PoliceOfficer
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- OldBill::V2::Neighbourhoods::PoliceOfficer
- Defined in:
- lib/oldbill/v2/neighbourhoods/police_officer.rb
Instance Method Summary collapse
-
#[]=(property, value) ⇒ Object
yak!!!!! refactor me please.
-
#contact_details_parsed(value) ⇒ Object
email telephone.
Instance Method Details
#[]=(property, value) ⇒ Object
yak!!!!! refactor me please
21 22 23 24 25 26 27 28 |
# File 'lib/oldbill/v2/neighbourhoods/police_officer.rb', line 21 def []=(property, value) case property when "contact_details" super(property.to_s, contact_details_parsed(value)) else super end end |
#contact_details_parsed(value) ⇒ Object
email telephone
14 15 16 17 18 |
# File 'lib/oldbill/v2/neighbourhoods/police_officer.rb', line 14 def contact_details_parsed(value) unless value.nil? Hashie::Mash.new(value) end end |