Class: RAPI::Enum
- Inherits:
-
Object
- Object
- RAPI::Enum
- Defined in:
- lib/rapi.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(attrs = 0) ⇒ Enum
constructor
A new instance of Enum.
- #to_i ⇒ Object
Constructor Details
#initialize(attrs = 0) ⇒ Enum
Returns a new instance of Enum.
338 339 340 |
# File 'lib/rapi.rb', line 338 def initialize(attrs = 0) @attrs = attrs.to_i end |
Instance Method Details
#to_i ⇒ Object
342 343 344 |
# File 'lib/rapi.rb', line 342 def to_i @attrs end |