Class: RMeetup::Poster::Base

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

Overview

RMeetup::Fetcher::Base

Base fetcher class that other fetchers will inherit from.

Direct Known Subclasses

EventComment

Instance Method Summary collapse

Constructor Details

#initializeBase

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(options = {})
  url = build_url(options)
  ret = post_response(url, options)
  ret
end