Class Simplepay::Support::Currency
In: lib/simplepay/support/currency.rb
Parent: Object
RuntimeError Error Service Standard Marketplace Donation Subscription MarketplacePolicy Interval SubscriptionPeriod BillingFrequency Comparable Field Service Epoch Currency Amount Boolean ResponseStatusCode Services Authentication FormHelper NotificationHelper RailsHelper Helpers Interval Currency Support Boolean Simplepay dot/f_2.png

Contains a name, recognized code, and basic formatting for a particular international monetary currency.

Methods

new   to_s  

Attributes

code  [R] 
format  [R] 
name  [R] 

Public Class methods

[Source]

# File lib/simplepay/support/currency.rb, line 11
      def initialize(name, code, format)
        @name, @code, @format = name, code, format
      end

Public Instance methods

[Source]

# File lib/simplepay/support/currency.rb, line 15
      def to_s
        "#{code}"
      end

[Validate]