Class: Mailchimp::Gallery
- Inherits:
-
Object
- Object
- Mailchimp::Gallery
- Defined in:
- lib/mailchimp/api.rb
Instance Attribute Summary collapse
-
#master ⇒ Object
Returns the value of attribute master.
Instance Method Summary collapse
-
#initialize(master) ⇒ Gallery
constructor
A new instance of Gallery.
-
#list(opts = []) ⇒ Hash
Return a section of the image gallery.
Constructor Details
#initialize(master) ⇒ Gallery
Returns a new instance of Gallery.
2198 2199 2200 |
# File 'lib/mailchimp/api.rb', line 2198 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
2196 2197 2198 |
# File 'lib/mailchimp/api.rb', line 2196 def master @master end |
Instance Method Details
#list(opts = []) ⇒ Hash
Return a section of the image gallery
2218 2219 2220 2221 |
# File 'lib/mailchimp/api.rb', line 2218 def list(opts=[]) _params = {:opts => opts} return @master.call 'gallery/list', _params end |