Class: Wordpressto::Base
- Inherits:
-
Object
- Object
- Wordpressto::Base
- Defined in:
- lib/wordpressto/base.rb
Direct Known Subclasses
CategoryCollection, WordpressAttachment, WordpressAttachmentCollection, WordpressPost, WordpressPostCollection
Instance Method Summary collapse
- #conn ⇒ Object
-
#initialize(options = { }) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(options = { }) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/wordpressto/base.rb', line 6 def initialize( = { }) @conn = [:conn] || [:connection] end |
Instance Method Details
#conn ⇒ Object
10 11 12 |
# File 'lib/wordpressto/base.rb', line 10 def conn @conn end |