Class: Mailchimp::Gallery

Inherits:
Object
  • Object
show all
Defined in:
lib/mailchimp/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(master) ⇒ Gallery



2107
2108
2109
# File 'lib/mailchimp/api.rb', line 2107

def initialize(master)
    @master = master
end

Instance Attribute Details

#masterObject

Returns the value of attribute master.



2105
2106
2107
# File 'lib/mailchimp/api.rb', line 2105

def master
  @master
end

Instance Method Details

#list(opts = []) ⇒ Hash

Return a section of the image gallery



2127
2128
2129
2130
# File 'lib/mailchimp/api.rb', line 2127

def list(opts=[])
    _params = {:opts => opts}
    return @master.call 'gallery/list', _params
end