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.
2078
2079
2080
2081
|
# File 'lib/webpay/data_types.rb', line 2078
def initialize(hash = {})
hash = normalize_hash(hash)
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
2059
2060
2061
|
# File 'lib/webpay/data_types.rb', line 2059
def attributes
@attributes
end
|
Class Method Details
.create(params) ⇒ Object
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
|
# File 'lib/webpay/data_types.rb', line 2066
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
2061
2062
2063
|
# File 'lib/webpay/data_types.rb', line 2061
def self.fields
['id']
end
|
Instance Method Details
#id ⇒ Object
2096
2097
2098
|
# File 'lib/webpay/data_types.rb', line 2096
def id
attributes['id']
end
|
#id=(value) ⇒ Object
2100
2101
2102
|
# File 'lib/webpay/data_types.rb', line 2100
def id=(value)
attributes['id'] = value
end
|
#query_params ⇒ Object
2089
2090
2091
2092
|
# File 'lib/webpay/data_types.rb', line 2089
def query_params
result = {}
return result
end
|
#request_body ⇒ Object
2084
2085
2086
2087
|
# File 'lib/webpay/data_types.rb', line 2084
def request_body
result = {}
result
end
|