lib/tickethub/supplier.rb in tickethub-0.2.14 vs lib/tickethub/supplier.rb in tickethub-0.2.15
- old
+ new
@@ -59,11 +59,12 @@
association :contact, Tickethub::Contact
association :token, Tickethub::Token
attribute :country, type: :country
attribute :currency, type: :currency
-
+ attribute :balance, type: :money
+
attribute :created_at, type: :datetime
attribute :updated_at, type: :datetime
def self.[](attributes)
token = attributes[:token].is_a?(String) ? attributes[:token]
@@ -78,12 +79,8 @@
endpoint = Tickethub.endpoint(auth_type: :bearer,
password: attributes['token']['access_token'])[self.class.path]
end
super(endpoint, attributes)
- end
-
- def settings
- @endpoint[:settings].get.decoded
end
end
end
\ No newline at end of file