Class: WebPay::RecursionIdRequest
- Inherits:
-
Entity
- Object
- Entity
- WebPay::RecursionIdRequest
show all
- Defined in:
- lib/webpay/data_types.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Entity
#normalize_hash, #to_h, #to_s
Constructor Details
Returns a new instance of RecursionIdRequest.
2013
2014
2015
2016
|
# File 'lib/webpay/data_types.rb', line 2013
def initialize(hash = {})
hash = normalize_hash(hash)
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
1994
1995
1996
|
# File 'lib/webpay/data_types.rb', line 1994
def attributes
@attributes
end
|
Class Method Details
.create(params) ⇒ Object
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
|
# File 'lib/webpay/data_types.rb', line 2001
def self.create(params)
return params if params.is_a?(self)
hash = case params
when Hash; params
when WebPay::RecursionResponse; {'id' => params.id}
when String; {'id' => params}
else
raise WebPay::InvalidRequestError.new("#{self} does not accept the given value", params)
end
self.new(hash)
end
|
.fields ⇒ Object
1996
1997
1998
|
# File 'lib/webpay/data_types.rb', line 1996
def self.fields
['id']
end
|
Instance Method Details
#id ⇒ Object
2031
2032
2033
|
# File 'lib/webpay/data_types.rb', line 2031
def id
attributes['id']
end
|
#id=(value) ⇒ Object
2035
2036
2037
|
# File 'lib/webpay/data_types.rb', line 2035
def id=(value)
attributes['id'] = value
end
|
#query_params ⇒ Object
2024
2025
2026
2027
|
# File 'lib/webpay/data_types.rb', line 2024
def query_params
result = {}
return result
end
|
#request_body ⇒ Object
2019
2020
2021
2022
|
# File 'lib/webpay/data_types.rb', line 2019
def request_body
result = {}
result
end
|