lib/tickethub/supplier.rb in tickethub-0.1.2 vs lib/tickethub/supplier.rb in tickethub-0.1.3
- old
+ new
@@ -57,9 +57,12 @@
association :contact, Tickethub::Contact
association :token, Tickethub::Token
attribute :country, type: :country
attribute :currency, type: :currency
+
+ attribute :created_at, type: :datetime
+ attribute :updated_at, type: :datetime
def self.[](attributes)
token = attributes[:token].is_a?(String) ? attributes[:token]
: attributes[:token][:access_token]
self.new Tickethub.endpoint['/supplier', auth_type: :bearer, password: token]
\ No newline at end of file