Class: WebPay::EventIdRequest
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 EventIdRequest.
1424
1425
1426
1427
|
# File 'lib/webpay/data_types.rb', line 1424
def initialize(hash = {})
hash = normalize_hash(hash)
@attributes = hash
end
|
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
1405
1406
1407
|
# File 'lib/webpay/data_types.rb', line 1405
def attributes
@attributes
end
|
Class Method Details
.create(params) ⇒ Object
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
|
# File 'lib/webpay/data_types.rb', line 1412
def self.create(params)
return params if params.is_a?(self)
hash = case params
when Hash; params
when WebPay::EventResponse; {'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
1407
1408
1409
|
# File 'lib/webpay/data_types.rb', line 1407
def self.fields
['id']
end
|
Instance Method Details
#id ⇒ Object
1442
1443
1444
|
# File 'lib/webpay/data_types.rb', line 1442
def id
attributes['id']
end
|
#id=(value) ⇒ Object
1446
1447
1448
|
# File 'lib/webpay/data_types.rb', line 1446
def id=(value)
attributes['id'] = value
end
|
#query_params ⇒ Object
1435
1436
1437
1438
|
# File 'lib/webpay/data_types.rb', line 1435
def query_params
result = {}
return result
end
|
#request_body ⇒ Object
1430
1431
1432
1433
|
# File 'lib/webpay/data_types.rb', line 1430
def request_body
result = {}
result
end
|