Class: Ruboty::ToggleSwitch::Storage::Switch

Inherits:
Struct
  • Object
show all
Defined in:
lib/ruboty/toggle_switch/storage.rb

Overview

Represents a switch.

Instance Attribute Summary collapse

Instance Attribute Details

#atObject

Returns the value of attribute at

Returns:

  • (Object)

    the current value of at



21
22
23
# File 'lib/ruboty/toggle_switch/storage.rb', line 21

def at
  @at
end

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



21
22
23
# File 'lib/ruboty/toggle_switch/storage.rb', line 21

def from
  @from
end

#noteObject

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



21
22
23
# File 'lib/ruboty/toggle_switch/storage.rb', line 21

def note
  @note
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



21
22
23
# File 'lib/ruboty/toggle_switch/storage.rb', line 21

def state
  @state
end