class Recras::Payment

Attributes

id[RW]

@note The is a required parameter.

status[RW]

Public Class Methods

attribute_mapping() click to toggle source

translates the mapping between the Recras API and the terms used in this gem

# File lib/recras/payment.rb, line 22
def self.attribute_mapping
  [
    ["id", "id"],
    ["status", "status"]
  ]
end
new(args=nil) click to toggle source

Initializer to transform a Hash into an Client object

@param [Hash] args

# File lib/recras/payment.rb, line 12
def initialize(args=nil)
  required_args = []
  return if args.nil?
  args.each do |k,v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end