lib/omisego/setting.rb in omisego-0.9.6 vs lib/omisego/setting.rb in omisego-0.10.0

- old
+ new

@@ -1,17 +1,17 @@ module OmiseGO class Setting < Base - attributes :minted_tokens + attributes :tokens class << self def all(client: nil) - request(client).send('get_settings', {}).data + request(client).send('settings.all', {}).data end end - def minted_tokens - @_minted_tokens ||= @minted_tokens.map do |minted_token| - MintedToken.new(minted_token) + def tokens + @_tokens ||= @tokens.map do |token| + Token.new(token) end end end end