Class: Perpetuity::Postgres::NumericValue

Inherits:
Object
  • Object
show all
Defined in:
lib/perpetuity/postgres/numeric_value.rb

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ NumericValue

Returns a new instance of NumericValue.



4
5
6
# File 'lib/perpetuity/postgres/numeric_value.rb', line 4

def initialize value
  @value = value
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/perpetuity/postgres/numeric_value.rb', line 8

def to_s
  @value.to_s
end

#to_strObject



12
13
14
# File 'lib/perpetuity/postgres/numeric_value.rb', line 12

def to_str
  to_s
end