Class: OpConnect::APIRequest
- Inherits:
-
Object
- Object
- OpConnect::APIRequest
- Defined in:
- lib/op_connect/api_request.rb,
lib/op_connect/api_request/actor.rb,
lib/op_connect/api_request/resource.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ APIRequest
constructor
A new instance of APIRequest.
Constructor Details
#initialize(options = {}) ⇒ APIRequest
Returns a new instance of APIRequest.
8 9 10 11 12 13 14 15 |
# File 'lib/op_connect/api_request.rb', line 8 def initialize( = {}) @request_id = ["request_id"] @timestamp = ["timestamp"] @action = ["action"] @result = ["result"] @actor = Actor.new(["actor"]) @resource = Resource.new(["resource"]) end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def action @action end |
#actor ⇒ Object (readonly)
Returns the value of attribute actor.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def actor @actor end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def request_id @request_id end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def resource @resource end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def result @result end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/op_connect/api_request.rb', line 6 def @timestamp end |