Class: Amazon::Associates::Ordinal
- Includes:
- Comparable
- Defined in:
- lib/amazon-associates/types/ordinal.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(value = nil) ⇒ Ordinal
constructor
A new instance of Ordinal.
- #to_s ⇒ Object (also: #inspect)
Constructor Details
#initialize(value = nil) ⇒ Ordinal
Returns a new instance of Ordinal.
10 11 12 |
# File 'lib/amazon-associates/types/ordinal.rb', line 10 def initialize(value = nil) @value = value && value.to_i end |