Class: Dogapi::Scope
- Inherits:
-
Object
- Object
- Dogapi::Scope
- Defined in:
- lib/dogapi/common.rb
Overview
Metadata class to hold the scope of an API call
Instance Attribute Summary collapse
-
#device ⇒ Object
readonly
Returns the value of attribute device.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
Instance Method Summary collapse
-
#initialize(host = nil, device = nil) ⇒ Scope
constructor
A new instance of Scope.
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
#device ⇒ Object (readonly)
Returns the value of attribute device.
30 31 32 |
# File 'lib/dogapi/common.rb', line 30 def device @device end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
30 31 32 |
# File 'lib/dogapi/common.rb', line 30 def host @host end |