Class: Ulla::Sequence
- Inherits:
-
Struct
- Object
- Struct
- Ulla::Sequence
- Defined in:
- lib/ulla/sequence.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data ⇒ Object
Returns the value of attribute data.
-
#description ⇒ Object
Returns the value of attribute description.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
2 3 4 |
# File 'lib/ulla/sequence.rb', line 2 def code @code end |
#data ⇒ Object
Returns the value of attribute data
2 3 4 |
# File 'lib/ulla/sequence.rb', line 2 def data @data end |
#description ⇒ Object
Returns the value of attribute description
2 3 4 |
# File 'lib/ulla/sequence.rb', line 2 def description @description end |
Instance Method Details
#to_hash ⇒ Object
3 4 5 |
# File 'lib/ulla/sequence.rb', line 3 def to_hash Hash[*members.zip(values).flatten] end |