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