Class: RMeetup::Poster::Base
- Inherits:
-
Object
- Object
- RMeetup::Poster::Base
- Defined in:
- lib/rmeetup/poster/base.rb
Overview
RMeetup::Fetcher::Base
Base fetcher class that other fetchers will inherit from.
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
-
#post(options = {}) ⇒ Object
Fetch and parse a response based on a set of options.
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
23 24 25 |
# File 'lib/rmeetup/poster/base.rb', line 23 def initialize @type = nil end |
Instance Method Details
#post(options = {}) ⇒ Object
Fetch and parse a response based on a set of options. Override this method to ensure neccessary options are passed for the request.
32 33 34 35 36 |
# File 'lib/rmeetup/poster/base.rb', line 32 def post( = {}) url = build_url() ret = post_response(url, ) ret end |