Class: Paypal::Api::Default
- Defined in:
- lib/paypal_api/support/parameter.rb
Instance Attribute Summary
Attributes inherited from Parameter
Instance Method Summary collapse
-
#initialize(value, parameter) ⇒ Default
constructor
A new instance of Default.
- #parse(val) ⇒ Object
Methods inherited from Parameter
Constructor Details
#initialize(value, parameter) ⇒ Default
Returns a new instance of Default.
182 183 184 185 |
# File 'lib/paypal_api/support/parameter.rb', line 182 def initialize(value, parameter) @value = value @parameter = parameter.is_a?(Sequential) ? parameter.clone : parameter end |
Instance Method Details
#parse(val) ⇒ Object
187 188 189 |
# File 'lib/paypal_api/support/parameter.rb', line 187 def parse(val) return parameter_parse(val) end |