Class: Dogapi::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/dogapi/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.



31
32
33
34
# File 'lib/dogapi/common.rb', line 31

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

Instance Attribute Details

#deviceObject (readonly)

Returns the value of attribute device.



30
31
32
# File 'lib/dogapi/common.rb', line 30

def device
  @device
end

#hostObject (readonly)

Returns the value of attribute host.



30
31
32
# File 'lib/dogapi/common.rb', line 30

def host
  @host
end