Class: Delish::SuperSQL
- Inherits:
-
Object
- Object
- Delish::SuperSQL
- Defined in:
- lib/delish_bookmark_search.rb
Instance Attribute Summary collapse
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#statement ⇒ Object
Returns the value of attribute statement.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(order) ⇒ SuperSQL
constructor
A new instance of SuperSQL.
Constructor Details
#initialize(order) ⇒ SuperSQL
Returns a new instance of SuperSQL.
5 6 7 8 9 10 11 12 13 |
# File 'lib/delish_bookmark_search.rb', line 5 def initialize(order) @statement = "" @variables = [] if order.is_a? Integer @order = order else throw "Not a good order." end end |
Instance Attribute Details
#order ⇒ Object (readonly)
Returns the value of attribute order.
16 17 18 |
# File 'lib/delish_bookmark_search.rb', line 16 def order @order end |
#statement ⇒ Object
Returns the value of attribute statement.
14 15 16 |
# File 'lib/delish_bookmark_search.rb', line 14 def statement @statement end |
#variables ⇒ Object
Returns the value of attribute variables.
15 16 17 |
# File 'lib/delish_bookmark_search.rb', line 15 def variables @variables end |