Class: Redd::Objects::LabeledMulti
- 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
Instance Method Summary collapse
-
#initialize(client, attributes = {}) ⇒ LabeledMulti
constructor
A new instance of LabeledMulti.
Methods inherited from Base
Constructor Details
#initialize(client, attributes = {}) ⇒ LabeledMulti
Returns a new instance of LabeledMulti.
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 |