Class: Webrelais::Pin
- Inherits:
-
Object
- Object
- Webrelais::Pin
- Defined in:
- lib/webrelais/pin.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Pin
constructor
A new instance of Pin.
- #to_s ⇒ Object
- #value ⇒ Object
- #value=(v) ⇒ Object
Constructor Details
#initialize(id) ⇒ Pin
Returns a new instance of Pin.
5 6 7 |
# File 'lib/webrelais/pin.rb', line 5 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/webrelais/pin.rb', line 3 def id @id end |