Class: Mws::EnumEntry
- Inherits:
-
Object
- Object
- Mws::EnumEntry
- Defined in:
- lib/mws/enum.rb
Instance Attribute Summary collapse
-
#sym ⇒ Object
readonly
Returns the value of attribute sym.
-
#val ⇒ Object
readonly
Returns the value of attribute val.
Instance Method Summary collapse
-
#initialize(sym, val) ⇒ EnumEntry
constructor
A new instance of EnumEntry.
Constructor Details
#initialize(sym, val) ⇒ EnumEntry
Returns a new instance of EnumEntry.
74 75 76 77 |
# File 'lib/mws/enum.rb', line 74 def initialize(sym, val) @sym = sym @val = val end |
Instance Attribute Details
#sym ⇒ Object (readonly)
Returns the value of attribute sym.
72 73 74 |
# File 'lib/mws/enum.rb', line 72 def sym @sym end |
#val ⇒ Object (readonly)
Returns the value of attribute val.
72 73 74 |
# File 'lib/mws/enum.rb', line 72 def val @val end |