Class: Refi::SsDbCellValue

Inherits:
Object
  • Object
show all
Defined in:
lib/spreadsheet_db_refi.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, type_id) ⇒ SsDbCellValue

Returns a new instance of SsDbCellValue.



263
264
265
266
267
268
# File 'lib/spreadsheet_db_refi.rb', line 263

def initialize(value,type_id)
	dperr(131,"'value' is not of type 'String' (type:'#{value.class}'") if !value.is_a?(String)
	dperr(132,"'type_id' is not of type 'Fixnum' (type:'#{type_id.class}'") if !type_id.is_a?(Fixnum)
	@value = value
	@type_id = type_id
end

Instance Attribute Details

#type_idObject

Returns the value of attribute type_id.



262
263
264
# File 'lib/spreadsheet_db_refi.rb', line 262

def type_id
  @type_id
end

#valueObject

Returns the value of attribute value.



261
262
263
# File 'lib/spreadsheet_db_refi.rb', line 261

def value
  @value
end