Class: Mogreet::Media

Inherits:
Object
  • Object
show all
Defined in:
lib/mogreet/media.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Media

Returns a new instance of Media.



3
4
5
# File 'lib/mogreet/media.rb', line 3

def initialize(client)
  @client = client
end

Instance Method Details

#destroy(options) ⇒ Object



14
15
16
# File 'lib/mogreet/media.rb', line 14

def destroy(options)
  @client.get_request('/cm/media.destroy', options)
end

#list(options = {}) ⇒ Object



6
7
8
# File 'lib/mogreet/media.rb', line 6

def list(options = {})
  @client.get_request('/cm/media.list')
end

#upload(options) ⇒ Object



10
11
12
# File 'lib/mogreet/media.rb', line 10

def upload(options)
  @client.post_request('/cm/media.upload', options)
end