class Recras::PaymentMethod

links to 'arrangement_regels' in the API recras.github.io/docs/endpoints/betaalmethoden.html

Attributes

id[RW]

@note The is a required parameter.

name[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_method.rb, line 24
def self.attribute_mapping
  [
    ["id", "id"],
    ["naam", "name"]
  ]
end
new(args=nil) click to toggle source

Initializer to transform a Hash into an Client object

@param [Hash] args

# File lib/recras/payment_method.rb, line 14
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