Class: Freesound::Client
- Inherits:
-
Object
- Object
- Freesound::Client
- Defined in:
- lib/freesound/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#requests ⇒ Object
readonly
Returns the value of attribute requests.
-
#responses ⇒ Object
readonly
Returns the value of attribute responses.
Instance Method Summary collapse
- #get_sound(id) ⇒ Object
-
#initialize(api_key, options = {}) ⇒ Client
constructor
A new instance of Client.
- #search_sounds(query, options = {}) ⇒ Object
Constructor Details
#initialize(api_key, options = {}) ⇒ Client
Returns a new instance of Client.
5 6 7 8 9 |
# File 'lib/freesound/client.rb', line 5 def initialize(api_key, ={}) @api_key = api_key @requests = [] @responses = [] end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/freesound/client.rb', line 3 def api_key @api_key end |
#requests ⇒ Object (readonly)
Returns the value of attribute requests.
3 4 5 |
# File 'lib/freesound/client.rb', line 3 def requests @requests end |
#responses ⇒ Object (readonly)
Returns the value of attribute responses.
3 4 5 |
# File 'lib/freesound/client.rb', line 3 def responses @responses end |