Class: Uphold::RequestData

Inherits:
Struct
  • Object
show all
Defined in:
lib/uphold/request_data.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject

Returns the value of attribute endpoint

Returns:

  • (Object)

    the current value of endpoint



2
3
4
# File 'lib/uphold/request_data.rb', line 2

def endpoint
  @endpoint
end

#entityObject

Returns the value of attribute entity

Returns:

  • (Object)

    the current value of entity



2
3
4
# File 'lib/uphold/request_data.rb', line 2

def entity
  @entity
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



2
3
4
# File 'lib/uphold/request_data.rb', line 2

def headers
  @headers
end

#payloadObject

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



2
3
4
# File 'lib/uphold/request_data.rb', line 2

def payload
  @payload
end