Class: Refi::SsDbCellValue
- Inherits:
-
Object
- Object
- Refi::SsDbCellValue
- Defined in:
- lib/spreadsheet_db_refi.rb
Instance Attribute Summary collapse
-
#type_id ⇒ Object
Returns the value of attribute type_id.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, type_id) ⇒ SsDbCellValue
constructor
A new instance of SsDbCellValue.
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_id ⇒ Object
Returns the value of attribute type_id.
262 263 264 |
# File 'lib/spreadsheet_db_refi.rb', line 262 def type_id @type_id end |
#value ⇒ Object
Returns the value of attribute value.
261 262 263 |
# File 'lib/spreadsheet_db_refi.rb', line 261 def value @value end |