Class: Db2Query::Type::Value
- Inherits:
-
Object
- Object
- Db2Query::Type::Value
show all
- Defined in:
- lib/db2_query/type/value.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options = {}) ⇒ Value
Returns a new instance of Value.
8
9
10
|
# File 'lib/db2_query/type/value.rb', line 8
def initialize(options = {})
@options = options
end
|
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6
7
8
|
# File 'lib/db2_query/type/value.rb', line 6
def options
@options
end
|
Instance Method Details
#deserialize(value) ⇒ Object
20
21
22
|
# File 'lib/db2_query/type/value.rb', line 20
def deserialize(value)
value
end
|
#quote(value) ⇒ Object
24
25
26
|
# File 'lib/db2_query/type/value.rb', line 24
def quote(value)
"'#{value}'"
end
|
#serialize(value) ⇒ Object
16
17
18
|
# File 'lib/db2_query/type/value.rb', line 16
def serialize(value)
value
end
|
#type_name ⇒ Object
12
13
14
|
# File 'lib/db2_query/type/value.rb', line 12
def type_name
:value
end
|