Module: OfficialFM
- Defined in:
- lib/officialfm.rb,
lib/officialfm/users.rb,
lib/officialfm/client.rb,
lib/officialfm/tracks.rb,
lib/officialfm/version.rb,
lib/officialfm/playlists.rb,
lib/officialfm/authentication.rb
Defined Under Namespace
Modules: Authentication, Playlists, Tracks, Users Classes: Client
Constant Summary collapse
- VERSION =
'0.1.2'
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_secret ⇒ Object
Returns the value of attribute api_secret.
-
.test_mode ⇒ Object
Returns the value of attribute test_mode.
Class Method Summary collapse
-
.configure {|api_key, username, password| ... } ⇒ Object
Configures default credentials easily.
- .test_mode? ⇒ Boolean
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
9 10 11 |
# File 'lib/officialfm.rb', line 9 def api_key @api_key end |
.api_secret ⇒ Object
Returns the value of attribute api_secret.
10 11 12 |
# File 'lib/officialfm.rb', line 10 def api_secret @api_secret end |
.test_mode ⇒ Object
Returns the value of attribute test_mode.
11 12 13 |
# File 'lib/officialfm.rb', line 11 def test_mode @test_mode end |
Class Method Details
.configure {|api_key, username, password| ... } ⇒ Object
Configures default credentials easily
15 16 17 18 |
# File 'lib/officialfm.rb', line 15 def configure yield self true end |
.test_mode? ⇒ Boolean
20 21 22 |
# File 'lib/officialfm.rb', line 20 def test_mode? !!self.test_mode end |