Class: CloudhouseGuardian::EventVariables

Inherits:
BaseObject
  • Object
show all
Defined in:
lib/cloudhouse_guardian/EventVariables.rb

Instance Attribute Summary

Attributes inherited from BaseObject

#appliance_api_key, #appliance_url, #insecure, #sec_key

Instance Method Summary collapse

Methods inherited from BaseObject

#http_delete, #http_get, #http_post, #http_put, #make_headers

Constructor Details

#initialize(appliance_url, appliance_api_key, sec_key, insecure) ⇒ EventVariables

Returns a new instance of EventVariables.



13
14
15
16
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 13

def initialize(appliance_url, appliance_api_key, sec_key, insecure)
  super(appliance_url, appliance_api_key, sec_key, insecure)
  @inner_map = {}
end

Instance Method Details

#[](key) ⇒ Object



19
20
21
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 19

def [](key)
  return @inner_map[key]
end

#[]=(key, value) ⇒ Object



24
25
26
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 24

def []=(key, value)
  @inner_map[key] = value
end

#from_hash(h) ⇒ Object



3
4
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 3

def from_hash(h)
end

#to_hashObject



5
6
7
8
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 5

def to_hash
  h = {}
  return h
end

#to_json(options = nil) ⇒ Object



9
10
11
12
# File 'lib/cloudhouse_guardian/EventVariables.rb', line 9

def to_json(options = nil)
  h = to_hash
  return h.to_json(options)
end