Class: DB::Postgres::Native::Types::Float
- Inherits:
-
Object
- Object
- DB::Postgres::Native::Types::Float
- Defined in:
- lib/db/postgres/native/types.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = "FLOAT") ⇒ Float
constructor
A new instance of Float.
- #parse(string) ⇒ Object
Constructor Details
#initialize(name = "FLOAT") ⇒ Float
Returns a new instance of Float.
73 74 75 |
# File 'lib/db/postgres/native/types.rb', line 73 def initialize(name = "FLOAT") @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
77 78 79 |
# File 'lib/db/postgres/native/types.rb', line 77 def name @name end |
Instance Method Details
#parse(string) ⇒ Object
79 80 81 |
# File 'lib/db/postgres/native/types.rb', line 79 def parse(string) Float(string) if string end |