Class: Auphonic::Base
- Inherits:
-
Struct
- Object
- Struct
- Auphonic::Base
- Defined in:
- lib/auphonic/base.rb
Direct Known Subclasses
Info::Algorithm, Info::OutputFile, Info::ProductionStatus, Info::ServiceType, Preset, Production, Service
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
2 3 4 |
# File 'lib/auphonic/base.rb', line 2 def data @data end |
Class Method Details
.all ⇒ Object
5 6 7 8 9 |
# File 'lib/auphonic/base.rb', line 5 def all method = self.name.downcase.gsub('::', '_').sub('auphonic_', '') + 's' raise 'Please do not call base directly' if method == 'bases' Endpoint.instance.send(method).map { |data| new(data) } end |
Instance Method Details
#uuid ⇒ Object
12 13 14 |
# File 'lib/auphonic/base.rb', line 12 def uuid data['uuid'] end |