Class: Uphold::RequestData
- Inherits:
-
Struct
- Object
- Struct
- Uphold::RequestData
- Defined in:
- lib/uphold/request_data.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#entity ⇒ Object
Returns the value of attribute entity.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#payload ⇒ Object
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(endpoint, entity, headers = {}, payload = nil) ⇒ RequestData
constructor
A new instance of RequestData.
Constructor Details
#initialize(endpoint, entity, headers = {}, payload = nil) ⇒ RequestData
Returns a new instance of RequestData.
3 4 5 |
# File 'lib/uphold/request_data.rb', line 3 def initialize(endpoint, entity, headers = {}, payload = nil) super end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint
2 3 4 |
# File 'lib/uphold/request_data.rb', line 2 def endpoint @endpoint end |
#entity ⇒ Object
Returns the value of attribute entity
2 3 4 |
# File 'lib/uphold/request_data.rb', line 2 def entity @entity end |
#headers ⇒ Object
Returns the value of attribute headers
2 3 4 |
# File 'lib/uphold/request_data.rb', line 2 def headers @headers end |
#payload ⇒ Object
Returns the value of attribute payload
2 3 4 |
# File 'lib/uphold/request_data.rb', line 2 def payload @payload end |