Class: Reddit::MessageGroup
- Includes:
- JsonListing
- Defined in:
- lib/ruby_reddit_api/message_group.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
readonly
Returns the value of attribute debug.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ MessageGroup
constructor
A new instance of MessageGroup.
- #mark_read(messages) ⇒ Object
- #mark_unread(messages) ⇒ Object
Methods included from JsonListing
Methods inherited from Thing
#author, #id, #report, #toggle
Methods inherited from Base
base_headers, #base_headers, #cookie, #inspect, #logged_in?, #login, #logout, #modhash, #read, #user, #user_agent, user_agent, #user_id
Constructor Details
#initialize ⇒ MessageGroup
Returns a new instance of MessageGroup.
7 8 9 |
# File 'lib/ruby_reddit_api/message_group.rb', line 7 def initialize @debug = StringIO.new end |
Instance Attribute Details
#debug ⇒ Object (readonly)
Returns the value of attribute debug.
5 6 7 |
# File 'lib/ruby_reddit_api/message_group.rb', line 5 def debug @debug end |
Instance Method Details
#mark_read(messages) ⇒ Object
11 12 13 |
# File 'lib/ruby_reddit_api/message_group.rb', line 11 def mark_read() mark , "read" end |
#mark_unread(messages) ⇒ Object
15 16 17 |
# File 'lib/ruby_reddit_api/message_group.rb', line 15 def mark_unread() mark , "unread" end |