Class: Zm::Client::TagsCollection
- Inherits:
-
Base::ObjectsCollection
- Object
- Base::ObjectsCollection
- Zm::Client::TagsCollection
- Defined in:
- lib/zm/client/tag/tags_collection.rb
Overview
collection account tags
Constant Summary
Constants inherited from Base::ObjectsCollection
Base::ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
-
#initialize(parent) ⇒ TagsCollection
constructor
A new instance of TagsCollection.
- #new {|tag| ... } ⇒ Object
Methods inherited from Base::ObjectsCollection
#all, #all!, #attrs, #build_from_entry, #count, #find, #first, #method_missing, #order, #page, #per_page, #respond_to_missing?, #where
Constructor Details
#initialize(parent) ⇒ TagsCollection
Returns a new instance of TagsCollection.
7 8 9 |
# File 'lib/zm/client/tag/tags_collection.rb', line 7 def initialize(parent) @parent = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zm::Client::Base::ObjectsCollection
Instance Method Details
#new {|tag| ... } ⇒ Object
11 12 13 14 15 |
# File 'lib/zm/client/tag/tags_collection.rb', line 11 def new tag = Tag.new(@parent) yield(tag) if block_given? tag end |