Class: WebPay::RecursionRequestResume
- Inherits:
-
Entity
- Object
- Entity
- WebPay::RecursionRequestResume
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 RecursionRequestResume.
2104
2105
2106
2107
|
# File 'lib/webpay/data_types.rb', line 2104
def initialize(hash = {})
hash = normalize_hash(hash)
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
2085
2086
2087
|
# File 'lib/webpay/data_types.rb', line 2085
def attributes
@attributes
end
|
Class Method Details
.create(params) ⇒ Object
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
|
# File 'lib/webpay/data_types.rb', line 2092
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
2087
2088
2089
|
# File 'lib/webpay/data_types.rb', line 2087
def self.fields
['id', 'retry']
end
|
Instance Method Details
#id ⇒ Object
2124
2125
2126
|
# File 'lib/webpay/data_types.rb', line 2124
def id
attributes['id']
end
|
#id=(value) ⇒ Object
2129
2130
2131
|
# File 'lib/webpay/data_types.rb', line 2129
def id=(value)
attributes['id'] = value
end
|
#query_params ⇒ Object
2117
2118
2119
2120
|
# File 'lib/webpay/data_types.rb', line 2117
def query_params
result = {}
return result
end
|
#request_body ⇒ Object
2110
2111
2112
2113
2114
2115
|
# File 'lib/webpay/data_types.rb', line 2110
def request_body
result = {}
copy_if_exists(@attributes, result, 'retry', 'request_body');
result
end
|
#retry ⇒ Object
2133
2134
2135
|
# File 'lib/webpay/data_types.rb', line 2133
def retry
attributes['retry']
end
|
#retry=(value) ⇒ Object
2138
2139
2140
|
# File 'lib/webpay/data_types.rb', line 2138
def retry=(value)
attributes['retry'] = value
end
|