Class: Wordpressto::Base

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

Instance Method Summary collapse

Constructor Details

#initialize(options = { }) ⇒ Base

Returns a new instance of Base.



6
7
8
# File 'lib/wordpressto/base.rb', line 6

def initialize(options = { })
  @conn = options[:conn] || options[:connection]
end

Instance Method Details

#connObject



10
11
12
# File 'lib/wordpressto/base.rb', line 10

def conn
  @conn
end