Class: MusixMatch::TrackFindResult
- Inherits:
-
Object
- Object
- MusixMatch::TrackFindResult
- Defined in:
- lib/musix_match/track_find_result.rb
Instance Attribute Summary collapse
-
#execute_time ⇒ Object
readonly
Returns the value of attribute execute_time.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
-
#track ⇒ Object
readonly
Returns the value of attribute track.
Instance Method Summary collapse
-
#initialize(response) ⇒ TrackFindResult
constructor
A new instance of TrackFindResult.
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_time ⇒ Object (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 |
#response ⇒ Object (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_code ⇒ Object (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 |
#track ⇒ Object (readonly)
Returns the value of attribute track.
3 4 5 |
# File 'lib/musix_match/track_find_result.rb', line 3 def track @track end |