Sha256: 85404d57976034437ce238898f9a89858d806fe5da6db684c97f892f32aad5fb

Contents?: true

Size: 617 Bytes

Versions: 2

Compression:

Stored size: 617 Bytes

Contents

module CoinMarketCap
  module Resources
    class Metadata < Resource
      property 'id'
      property 'name'
      property 'symbol'
      property 'category'
      property 'slug'
      property 'logo'
      property 'description'
      property 'date_added', transform_with: ->(v) { iso8601_date(v) }
      property 'notice'
      property 'tags'
      property 'platform', transform_with: lambda { |v|
        CoinMarketCap::Resources::Platform.new(v) unless v.nil?
      }
      property 'urls', transform_with: lambda { |v|
        CoinMarketCap::Resources::URL.new(v) unless v.nil?
      }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coinmarketcap-ruby-client-1.1.1 lib/coinmarketcap/resources/metadata.rb
coinmarketcap-ruby-client-1.1.0 lib/coinmarketcap/resources/metadata.rb