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.
2101 2102 2103 |
# File 'lib/mailchimp/api.rb', line 2101 def initialize(master) @master = master end |
Instance Attribute Details
#master ⇒ Object
Returns the value of attribute master.
2099 2100 2101 |
# File 'lib/mailchimp/api.rb', line 2099 def master @master end |
Instance Method Details
#list(opts = []) ⇒ Hash
Return a section of the image gallery
2121 2122 2123 2124 |
# File 'lib/mailchimp/api.rb', line 2121 def list(opts=[]) _params = {:opts => opts} return @master.call 'gallery/list', _params end |