Module: Plancast
- Defined in:
- lib/plancast.rb,
lib/plancast/client.rb
Defined Under Namespace
Classes: Client, ClientError, General, NotFound, PlancastError, ServerError, Unauthorized, Unavailable
Constant Summary
collapse
- VERSION =
"0.1.3".freeze
Class Method Summary
collapse
Class Method Details
.api_url(endpoint, version = self.api_version) ⇒ Object
17
18
19
|
# File 'lib/plancast.rb', line 17
def self.api_url(endpoint, version = self.api_version)
"http://api.plancast.com/#{version}#{endpoint}.json"
end
|
.api_version ⇒ Object
22
23
24
|
# File 'lib/plancast.rb', line 22
def self.api_version
@api_version || "02"
end
|
.api_version=(value) ⇒ Object
26
27
28
|
# File 'lib/plancast.rb', line 26
def self.api_version=(value)
@api_version = value
end
|
12
13
14
15
|
# File 'lib/plancast.rb', line 12
def self.configure
yield self
true
end
|