Sha256: 10351b90ab8ab4fc5d0d9da7655d3d6299a82a76dc8a4b051a1bb372465dff29

Contents?: true

Size: 290 Bytes

Versions: 3

Compression:

Stored size: 290 Bytes

Contents

module OmiseGO
  class Setting < Base
    attributes :tokens

    class << self
      def all(client: nil)
        request(client).send('settings.all', {}).data
      end
    end

    def tokens
      @_tokens ||= @tokens.map do |token|
        Token.new(token)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omisego-0.12.0 lib/omisego/setting.rb
omisego-0.11.0 lib/omisego/setting.rb
omisego-0.10.0 lib/omisego/setting.rb