Class: OldBill::V2::Force
- Inherits:
-
Hashie::Dash
- Object
- Hashie::Dash
- OldBill::V2::Force
- Defined in:
- lib/oldbill/v2/force.rb
Instance Method Summary collapse
- #[]=(property, value) ⇒ Object
-
#engagement_methods_parsed(value) ⇒ Object
url Method website URL description Method description title Method title.
Instance Method Details
#[]=(property, value) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/oldbill/v2/force.rb', line 26 def []=(property, value) case property when "engagement_methods" super(property.to_s, engagement_methods_parsed(value)) else super end end |
#engagement_methods_parsed(value) ⇒ Object
url Method website URL description Method description title Method title
19 20 21 22 23 |
# File 'lib/oldbill/v2/force.rb', line 19 def engagement_methods_parsed(value) unless value.nil? value.map{|engagement_method| Hashie::Mash.new(engagement_method)} end end |