Class: Mogreet::Media
- Inherits:
-
Object
- Object
- Mogreet::Media
- Defined in:
- lib/mogreet/media.rb
Instance Method Summary collapse
- #destroy(options) ⇒ Object
-
#initialize(client) ⇒ Media
constructor
A new instance of Media.
- #list(options = {}) ⇒ Object
- #upload(options) ⇒ Object
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() @client.get_request('/cm/media.destroy', ) end |
#list(options = {}) ⇒ Object
6 7 8 |
# File 'lib/mogreet/media.rb', line 6 def list( = {}) @client.get_request('/cm/media.list') end |
#upload(options) ⇒ Object
10 11 12 |
# File 'lib/mogreet/media.rb', line 10 def upload() @client.post_request('/cm/media.upload', ) end |