Sha256: e7bf4eb26cb167c39e84d62ac928eca17c08d1121754304f0e40959113861b38

Contents?: true

Size: 242 Bytes

Versions: 3

Compression:

Stored size: 242 Bytes

Contents

require 'date'

module CoinMarketCap
  module Resources
    class Resource < Hashie::Trash
      include Hashie::Extensions::IgnoreUndeclared

      def self.iso8601_date(timestamp)
        Date.iso8601(timestamp)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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