Sha256: e97185f86e732870e56f9aea60eeb10c39043d7618808da2553bfe4f2b143658

Contents?: true

Size: 338 Bytes

Versions: 3

Compression:

Stored size: 338 Bytes

Contents

module OmiseGO
  class Setting < Base
    attributes :minted_tokens

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

    def minted_tokens
      @_minted_tokens ||= @minted_tokens.map do |minted_token|
        MintedToken.new(minted_token)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
omisego-0.9.6 lib/omisego/setting.rb
omisego-0.9.5 lib/omisego/setting.rb
omisego-0.9.4 lib/omisego/setting.rb