Class: Ulla::Sequence

Inherits:
Struct
  • Object
show all
Defined in:
lib/ulla/sequence.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



2
3
4
# File 'lib/ulla/sequence.rb', line 2

def code
  @code
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



2
3
4
# File 'lib/ulla/sequence.rb', line 2

def data
  @data
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



2
3
4
# File 'lib/ulla/sequence.rb', line 2

def description
  @description
end

Instance Method Details

#to_hashObject



3
4
5
# File 'lib/ulla/sequence.rb', line 3

def to_hash
  Hash[*members.zip(values).flatten]
end