Sha256: ae4198262d087895e8b1e3a3871b2b1286f573b4b398a149b91495d564f1a0ed

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

module Fxer
  class Exchange
    class Data
      class Date
        class Currency
          attr_accessor :key, :rate

          #
          # rate= takes one argument,
          #   1. raw_rate, a string representing a float
          # and converts it into a float, and assigns it to its rate attribute
          #
          def rate=(raw_rate)
            @rate = "#{raw_rate}".to_f
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fxer-0.1.0 lib/fxer/exchange/data/date/currency.rb