Class: MusixMatch::TrackFindResult

Inherits:
Object
  • Object
show all
Defined in:
lib/musix_match/track_find_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ TrackFindResult

Returns a new instance of TrackFindResult.



5
6
7
8
# File 'lib/musix_match/track_find_result.rb', line 5

def initialize(response)
  @response = response
  parse_response(response)
end

Instance Attribute Details

#execute_timeObject (readonly)

Returns the value of attribute execute_time.



3
4
5
# File 'lib/musix_match/track_find_result.rb', line 3

def execute_time
  @execute_time
end

#responseObject (readonly)

Returns the value of attribute response.



3
4
5
# File 'lib/musix_match/track_find_result.rb', line 3

def response
  @response
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



3
4
5
# File 'lib/musix_match/track_find_result.rb', line 3

def status_code
  @status_code
end

#trackObject (readonly)

Returns the value of attribute track.



3
4
5
# File 'lib/musix_match/track_find_result.rb', line 3

def track
  @track
end