75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
# File 'lib/purecloud/models/charge.rb', line 75
def initialize(attributes = {})
return unless attributes.is_a?(Hash)
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
if attributes[:'licenseCount']
self.license_count = attributes[:'licenseCount']
end
if attributes[:'name']
self.name = attributes[:'name']
end
if attributes[:'description']
self.description = attributes[:'description']
end
if attributes[:'price']
self.price = attributes[:'price']
end
if attributes[:'unitOfMeasure']
self.unit_of_measure = attributes[:'unitOfMeasure']
end
if attributes[:'billingPeriod']
self.billing_period = attributes[:'billingPeriod']
end
if attributes[:'quantity']
self.quantity = attributes[:'quantity']
end
if attributes[:'includedUnits']
self.included_units = attributes[:'includedUnits']
end
end
|