Class: Elesai::LSIArray::BBU::NumberUnit

Inherits:
Struct
  • Object
show all
Defined in:
lib/elesai/lsi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



221
222
223
# File 'lib/elesai/lsi.rb', line 221

def number
  @number
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



221
222
223
# File 'lib/elesai/lsi.rb', line 221

def unit
  @unit
end

Instance Method Details

#to_sObject



222
# File 'lib/elesai/lsi.rb', line 222

def to_s ; "%d%s" % [self.number,self.unit] end