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