Class: Miniphonic::Preset
- Includes:
- Attributes::Preset
- Defined in:
- lib/miniphonic/preset.rb
Instance Attribute Summary
Attributes included from Attributes::Preset
Attributes inherited from ApiObject
Instance Method Summary collapse
Methods included from Attributes::Preset
#algorithms, #attributes_to_payload, #metadata, #multi_input_files, #outgoing_services, #output_files, #payload_to_attributes
Methods inherited from ApiObject
all, #attributes_to_payload, #collection_endpoint, #collection_url, #command, #command_url, #delete, #get_attributes, #initialize, #payload_to_attributes, #single_url, #update, #upload_cover
Methods included from Helpers
#delete_from_server, #from_server, #handle_response, #path_to_payload, #server_error, #to_server
Constructor Details
This class inherits a constructor from Miniphonic::ApiObject
Instance Method Details
#create ⇒ Object
11 12 13 14 |
# File 'lib/miniphonic/preset.rb', line 11 def create raise PresetNameError, "You can't create a preset without setting preset.name first." unless name super end |
#endpoint ⇒ Object
7 8 9 |
# File 'lib/miniphonic/preset.rb', line 7 def endpoint "preset" end |