Class: Recras::PaymentMethod
- Inherits:
-
Object
- Object
- Recras::PaymentMethod
- Extended by:
- Recras
- Defined in:
- lib/recras/payment_method.rb
Overview
links to ‘arrangement_regels’ in the API recras.github.io/docs/endpoints/betaalmethoden.html
Constant Summary
Constants included from Recras
Instance Attribute Summary collapse
- #id ⇒ Object
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
-
.attribute_mapping ⇒ Object
translates the mapping between the Recras API and the terms used in this gem.
Instance Method Summary collapse
-
#initialize(args = nil) ⇒ PaymentMethod
constructor
Initializer to transform a
Hash
into an Client object.
Methods included from Recras
make_request, new_from_json, object_mappings, parse_json, url, version
Constructor Details
#initialize(args = nil) ⇒ PaymentMethod
Initializer to transform a Hash
into an Client object
14 15 16 17 18 19 20 |
# 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 |
Instance Attribute Details
#id ⇒ Object
Note:
The is a required parameter.
9 10 11 |
# File 'lib/recras/payment_method.rb', line 9 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
10 11 12 |
# File 'lib/recras/payment_method.rb', line 10 def name @name end |
Class Method Details
.attribute_mapping ⇒ Object
translates the mapping between the Recras API and the terms used in this gem
24 25 26 27 28 29 |
# File 'lib/recras/payment_method.rb', line 24 def self.attribute_mapping [ ["id", "id"], ["naam", "name"] ] end |