Class: OpConnect::APIRequest::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/op_connect/api_request/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Resource

Returns a new instance of Resource.



6
7
8
9
10
11
# File 'lib/op_connect/api_request/resource.rb', line 6

def initialize(options = {})
  @type = options["type"]
  @vault = Object.new(options["vault"])
  @item = Object.new(options["item"])
  @item_version = options["item_version"]
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



4
5
6
# File 'lib/op_connect/api_request/resource.rb', line 4

def item
  @item
end

#item_versionObject (readonly)

Returns the value of attribute item_version.



4
5
6
# File 'lib/op_connect/api_request/resource.rb', line 4

def item_version
  @item_version
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/op_connect/api_request/resource.rb', line 4

def type
  @type
end

#vaultObject (readonly)

Returns the value of attribute vault.



4
5
6
# File 'lib/op_connect/api_request/resource.rb', line 4

def vault
  @vault
end