Class: Redd::Objects::LabeledMulti

Inherits:
Base
  • Object
show all
Defined in:
lib/redd/objects/labeled_multi.rb

Overview

A comment that can be made on a link.

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Base

alias_property

Constructor Details

#initialize(client, attributes = {}) ⇒ LabeledMulti

Returns a new instance of LabeledMulti.

See Also:



6
7
8
9
10
# File 'lib/redd/objects/labeled_multi.rb', line 6

def initialize(client, attributes = {})
  attr_dup = attributes.dup
  attr_dup[:subreddits].map! { |sub| sub[:name] }
  super(client, attr_dup)
end