Class: Paypal::Api::Default

Inherits:
Parameter show all
Defined in:
lib/paypal_api/support/parameter.rb

Instance Attribute Summary

Attributes inherited from Parameter

#value

Instance Method Summary collapse

Methods inherited from Parameter

#parameter_parse

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