Module: HackyHAL::Options

Included in:
DeviceControllers::Base, DeviceResolvers::Base
Defined in:
lib/hacky_hal/options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/hacky_hal/options.rb', line 3

def options
  @options
end

Instance Method Details

#[](value) ⇒ Object



9
10
11
# File 'lib/hacky_hal/options.rb', line 9

def [](value)
  @options[value]
end

#initialize(options) ⇒ Object



5
6
7
# File 'lib/hacky_hal/options.rb', line 5

def initialize(options)
  @options = options
end