Class: Jerakia::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/jerakia/request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = {})
  options        = defaults.merge(opts)
  @key           = options[:key]
  @namespace     = options[:namespace]
  @merge         = options[:merge]
  @policy        = options[:policy]
  @metadata      = options[:metadata]
  @lookup_type   = options[:lookup_type]
  @scope         = options[:scope]
  @scope_options = options[:scope_options] || {}
  @use_schema    = options[:use_schema]

  Jerakia.log.debug("Request initialized with #{options}")
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



5
6
7
# File 'lib/jerakia/request.rb', line 5

def key
  @key
end

#lookup_typeObject

Returns the value of attribute lookup_type.



10
11
12
# File 'lib/jerakia/request.rb', line 10

def lookup_type
  @lookup_type
end

#mergeObject

Returns the value of attribute merge.



7
8
9
# File 'lib/jerakia/request.rb', line 7

def merge
  @merge
end

#metadataObject

Returns the value of attribute metadata.



9
10
11
# File 'lib/jerakia/request.rb', line 9

def 
  @metadata
end

#namespaceObject

Returns the value of attribute namespace.



6
7
8
# File 'lib/jerakia/request.rb', line 6

def namespace
  @namespace
end

#policyObject

Returns the value of attribute policy.



8
9
10
# File 'lib/jerakia/request.rb', line 8

def policy
  @policy
end

#scopeObject

Returns the value of attribute scope.



11
12
13
# File 'lib/jerakia/request.rb', line 11

def scope
  @scope
end

#scope_optionsObject

Returns the value of attribute scope_options.



12
13
14
# File 'lib/jerakia/request.rb', line 12

def scope_options
  @scope_options
end

#use_schemaObject

Returns the value of attribute use_schema.



13
14
15
# File 'lib/jerakia/request.rb', line 13

def use_schema
  @use_schema
end