Class: Imuze::GetGenres

Inherits:
Struct
  • Object
show all
Defined in:
lib/imuze/get_genres.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#global_optionsObject

Returns the value of attribute global_options

Returns:

  • (Object)

    the current value of global_options



2
3
4
# File 'lib/imuze/get_genres.rb', line 2

def global_options
  @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

#callObject



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