Sha256: c823f1f27d05ddf82190a66b22070b4f81054f6badfa4561a7a5fcd205b6d73e

Contents?: true

Size: 549 Bytes

Versions: 21

Compression:

Stored size: 549 Bytes

Contents

require 'gecko/record/base'

module Gecko
  module Record
    class Currency < Base
      attribute :iso,       String
      attribute :name,      String
      attribute :rate,      BigDecimal
      attribute :symbol,    String
      attribute :separator, String
      attribute :delimiter, String
      attribute :precision, Integer
      attribute :format,    String
    end

    class CurrencyAdapter < BaseAdapter
      # Override plural_path to properly pluralize currency
      def plural_path
        'currencies'
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
gecko-ruby-0.9.1 lib/gecko/record/currency.rb
gecko-ruby-0.9.0 lib/gecko/record/currency.rb
gecko-ruby-0.8.0 lib/gecko/record/currency.rb
gecko-ruby-0.2.6 lib/gecko/record/currency.rb
gecko-ruby-0.7.1 lib/gecko/record/currency.rb
gecko-ruby-0.7.0 lib/gecko/record/currency.rb
gecko-ruby-0.6.0 lib/gecko/record/currency.rb
gecko-ruby-0.5.0 lib/gecko/record/currency.rb
gecko-ruby-0.2.5 lib/gecko/record/currency.rb
gecko-ruby-0.2.4 lib/gecko/record/currency.rb
gecko-ruby-0.2.3 lib/gecko/record/currency.rb
gecko-ruby-0.2.2 lib/gecko/record/currency.rb
gecko-ruby-0.2.0 lib/gecko/record/currency.rb
gecko-ruby-0.1.0 lib/gecko/record/currency.rb
gecko-ruby-0.0.10 lib/gecko/record/currency.rb
gecko-ruby-0.0.9 lib/gecko/record/currency.rb
gecko-ruby-0.0.8 lib/gecko/record/currency.rb
gecko-ruby-0.0.7 lib/gecko/record/currency.rb
gecko-ruby-0.0.6 lib/gecko/record/currency.rb
gecko-ruby-0.0.5 lib/gecko/record/currency.rb