Class: Reddit::MessageGroup

Inherits:
Thing show all
Includes:
JsonListing
Defined in:
lib/ruby_reddit_api/message_group.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#last_action

Instance Method Summary collapse

Methods included from JsonListing

included

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

#initializeMessageGroup

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

#debugObject (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(messages)
  mark messages, "read"
end

#mark_unread(messages) ⇒ Object



15
16
17
# File 'lib/ruby_reddit_api/message_group.rb', line 15

def mark_unread(messages)
  mark messages, "unread"
end