Class: DogapiDemo::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/dogapi-demo/common.rb

Overview

Metadata class to hold the scope of an API call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(host = nil, device = nil) ⇒ Scope

Returns a new instance of Scope.



15
16
17
18
# File 'lib/dogapi-demo/common.rb', line 15

def initialize(host=nil, device=nil)
  @host = host
  @device = device
end

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



14
15
16
# File 'lib/dogapi-demo/common.rb', line 14

def device
  @device
end

#hostObject (readonly)

Returns the value of attribute host.



14
15
16
# File 'lib/dogapi-demo/common.rb', line 14

def host
  @host
end