Class: Notifications::Client::TemplateCollection
- Inherits:
-
Object
- Object
- Notifications::Client::TemplateCollection
- Defined in:
- lib/notifications/client/template_collection.rb
Instance Attribute Summary collapse
-
#collection ⇒ Object
readonly
Returns the value of attribute collection.
Instance Method Summary collapse
- #collection_from(templates) ⇒ Object
-
#initialize(response) ⇒ TemplateCollection
constructor
A new instance of TemplateCollection.
Constructor Details
#initialize(response) ⇒ TemplateCollection
Returns a new instance of TemplateCollection.
5 6 7 |
# File 'lib/notifications/client/template_collection.rb', line 5 def initialize(response) @collection = collection_from(response["templates"]) end |
Instance Attribute Details
#collection ⇒ Object (readonly)
Returns the value of attribute collection.
4 5 6 |
# File 'lib/notifications/client/template_collection.rb', line 4 def collection @collection end |