Class: Trustly::Data::Request
Instance Attribute Summary collapse
#payload
Instance Method Summary
collapse
#get, #get_from, #json, #pop, #set, #set_in, #vacumm
Constructor Details
#initialize(method = nil, payload = nil) ⇒ Request
Returns a new instance of Request.
5
6
7
8
9
10
11
12
13
|
# File 'lib/trustly/data/request.rb', line 5
def initialize(method=nil,payload=nil)
super
self.payload = self.vacuum(payload) unless payload.nil?
unless method.nil?
self.method = method
else
self.method = self.payload.get('method')
end
end
|
Instance Attribute Details
#method ⇒ Object
Returns the value of attribute method.
3
4
5
|
# File 'lib/trustly/data/request.rb', line 3
def method
@method
end
|
Instance Method Details
#get_method ⇒ Object
15
16
17
|
# File 'lib/trustly/data/request.rb', line 15
def get_method
return self.method
end
|
#get_uuid ⇒ Object
24
25
26
|
# File 'lib/trustly/data/request.rb', line 24
def get_uuid
return self.payload.get('uuid')
end
|
#set_method(method) ⇒ Object
19
20
21
22
|
# File 'lib/trustly/data/request.rb', line 19
def set_method(method)
self.method = method
return method
end
|
#set_uuid ⇒ Object
28
29
30
31
|
# File 'lib/trustly/data/request.rb', line 28
def set_uuid
self.set('uuid',uuid)
return uuid
end
|