Class: Imuze::CreateMusic
- Inherits:
-
Struct
- Object
- Struct
- Imuze::CreateMusic
- Defined in:
- lib/imuze/create_music.rb
Instance Attribute Summary collapse
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#genre ⇒ Object
Returns the value of attribute genre.
-
#options ⇒ Object
Returns the value of attribute options.
-
#structure ⇒ Object
Returns the value of attribute structure.
-
#subgenre ⇒ Object
Returns the value of attribute subgenre.
-
#token ⇒ Object
Returns the value of attribute token.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#duration ⇒ Object
Returns the value of attribute duration
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def duration @duration end |
#genre ⇒ Object
Returns the value of attribute genre
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def genre @genre end |
#options ⇒ Object
Returns the value of attribute options
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def @options end |
#structure ⇒ Object
Returns the value of attribute structure
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def structure @structure end |
#subgenre ⇒ Object
Returns the value of attribute subgenre
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def subgenre @subgenre end |
#token ⇒ Object
Returns the value of attribute token
2 3 4 |
# File 'lib/imuze/create_music.rb', line 2 def token @token end |
Class Method Details
.call(*args) ⇒ Object
7 8 9 |
# File 'lib/imuze/create_music.rb', line 7 def self.call(*args) new(*args).call end |
Instance Method Details
#call ⇒ Object
11 12 13 14 |
# File 'lib/imuze/create_music.rb', line 11 def call response = http.request(put_request) JSON.parse(response.read_body) end |