Method: PureCloud::Tier#initialize
- Defined in:
- lib/purecloud/models/tier.rb
#initialize(attributes = {}) ⇒ Tier
Returns a new instance of Tier.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/purecloud/models/tier.rb', line 29 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'currency'] self.currency = attributes[:'currency'] end if attributes[:'price'] self.price = attributes[:'price'] end end |