class PaysonAPI::V2::Requests::Order

Attributes

currency[RW]
items[RW]

Public Class Methods

new() click to toggle source
# File lib/payson_api/v2/requests/order.rb, line 9
def initialize
  @items = []
end

Public Instance Methods

to_hash() click to toggle source
# File lib/payson_api/v2/requests/order.rb, line 13
def to_hash
  {}.tap do |hash|
    hash['currency'] = @currency
    hash['items'] = @items.map(&:to_hash)
  end
end