Class: Jerakia::Request
- Inherits:
-
Object
- Object
- Jerakia::Request
- Defined in:
- lib/jerakia/request.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#lookup_type ⇒ Object
Returns the value of attribute lookup_type.
-
#merge ⇒ Object
Returns the value of attribute merge.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#scope_options ⇒ Object
Returns the value of attribute scope_options.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(opts = {}) ⇒ Request
Returns a new instance of Request.
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/jerakia/request.rb', line 13 def initialize(opts={}) = defaults.merge(opts) @key = [:key] @namespace = [:namespace] @merge = [:merge] @policy = [:policy] @metadata = [:metadata] @lookup_type = [:lookup_type] @scope = [:scope] @scope_options = [:scope_options] || {} Jerakia.log.debug("Request initialized with #{}") end |
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
4 5 6 |
# File 'lib/jerakia/request.rb', line 4 def key @key end |
#lookup_type ⇒ Object
Returns the value of attribute lookup_type.
9 10 11 |
# File 'lib/jerakia/request.rb', line 9 def lookup_type @lookup_type end |
#merge ⇒ Object
Returns the value of attribute merge.
6 7 8 |
# File 'lib/jerakia/request.rb', line 6 def merge @merge end |
#metadata ⇒ Object
Returns the value of attribute metadata.
8 9 10 |
# File 'lib/jerakia/request.rb', line 8 def @metadata end |
#namespace ⇒ Object
Returns the value of attribute namespace.
5 6 7 |
# File 'lib/jerakia/request.rb', line 5 def namespace @namespace end |
#policy ⇒ Object
Returns the value of attribute policy.
7 8 9 |
# File 'lib/jerakia/request.rb', line 7 def policy @policy end |
#scope ⇒ Object
Returns the value of attribute scope.
10 11 12 |
# File 'lib/jerakia/request.rb', line 10 def scope @scope end |
#scope_options ⇒ Object
Returns the value of attribute scope_options.
11 12 13 |
# File 'lib/jerakia/request.rb', line 11 def @scope_options end |