183
184
185
186
187
188
189
190
191
192
193
194
|
# File 'lib/megam/core/invoices.rb', line 183
def from_hash(o)
@id = o[:id] if o.has_key?(:id)
@accounts_id = o[:accounts_id] if o.has_key?(:accounts_id)
@from_date = o[:from_date] if o.has_key?(:from_date)
@to_date = o[:to_date] if o.has_key?(:to_date)
@month = o[:month] if o.has_key?(:month)
@bill_type = o[:bill_type] if o.has_key?(:bill_type)
@billing_amount = o[:billing_amount] if o.has_key?(:billing_amount)
@currency_type = o[:currency_type] if o.has_key?(:currency_type)
@created_at = o[:created_at] if o.has_key?(:created_at)
self
end
|