Class: Delish::SuperSQL

Inherits:
Object
  • Object
show all
Defined in:
lib/delish_bookmark_search.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#orderObject (readonly)

Returns the value of attribute order.



16
17
18
# File 'lib/delish_bookmark_search.rb', line 16

def order
  @order
end

#statementObject

Returns the value of attribute statement.



14
15
16
# File 'lib/delish_bookmark_search.rb', line 14

def statement
  @statement
end

#variablesObject

Returns the value of attribute variables.



15
16
17
# File 'lib/delish_bookmark_search.rb', line 15

def variables
  @variables
end