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.



11
12
13
14
15
16
17
18
19
# File 'lib/jerakia/request.rb', line 11

def initialize(opts={})
  @key = opts[:key] || ''
  @namespace =  opts[:namespace] || []
  @merge = opts[:merge] || false
  @policy = opts[:policy] || 'default'
  @metadata = opts[:metadata] || {}
  @lookup_type = opts[:lookup_type] || :first
  @scope = opts[:scope] || nil
end

Instance Attribute Details

#keyObject

Returns the value of attribute key.



3
4
5
# File 'lib/jerakia/request.rb', line 3

def key
  @key
end

#lookup_typeObject

Returns the value of attribute lookup_type.



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

def lookup_type
  @lookup_type
end

#mergeObject

Returns the value of attribute merge.



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

def merge
  @merge
end

#metadataObject

Returns the value of attribute metadata.



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

def 
  @metadata
end

#namespaceObject

Returns the value of attribute namespace.



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

def namespace
  @namespace
end

#policyObject

Returns the value of attribute policy.



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

def policy
  @policy
end

#scopeObject

Returns the value of attribute scope.



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

def scope
  @scope
end