Class: RMeetup::Poster::Event
Instance Method Summary collapse
-
#format_result(result) ⇒ Object
Turn the result hash into an Event Class.
-
#initialize ⇒ Event
constructor
A new instance of Event.
Methods inherited from Base
Constructor Details
#initialize ⇒ Event
Returns a new instance of Event.
4 5 6 7 |
# File 'lib/rmeetup/poster/event.rb', line 4 def initialize @type = :event @response_type = ResponseType::OBJECT end |
Instance Method Details
#format_result(result) ⇒ Object
Turn the result hash into an Event Class
10 11 12 |
# File 'lib/rmeetup/poster/event.rb', line 10 def format_result(result) RMeetup::Type::Event.new(result) end |