Sha256: 824c400e13ec2865a490b3c29390eefc59184d02b553855956fa2c75f8a258e9
Contents?: true
Size: 630 Bytes
Versions: 7
Compression:
Stored size: 630 Bytes
Contents
module Mousetrap class Invoice < Resource attr_accessor \ :id, :number, :billing_date, :created_at protected def self.plural_resource_name 'invoices' end def self.singular_resource_name 'invoice' end attr_writer \ :id, :number, :billing_date, :created_at def self.attributes_from_api(attributes) { :id => attributes['id'], :number => attributes['number'], :billing_date => attributes['billingDatetime'], :created_at => attributes['createdDatetime'] } end end end
Version data entries
7 entries across 7 versions & 1 rubygems