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