Module: CarbonPms
- Defined in:
- lib/carbon_pms.rb,
lib/carbon_pms/client.rb,
lib/carbon_pms/version.rb
Defined Under Namespace
Classes: Client
Constant Summary collapse
- VERSION =
"0.2.1"
Class Attribute Summary collapse
-
.auth_token ⇒ Object
Returns the value of attribute auth_token.
-
.host ⇒ Object
Returns the value of attribute host.
-
.version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
config/initializers/carbon_pms.rb (for instance).
Class Attribute Details
.auth_token ⇒ Object
Returns the value of attribute auth_token.
6 7 8 |
# File 'lib/carbon_pms.rb', line 6 def auth_token @auth_token end |
.host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/carbon_pms.rb', line 6 def host @host end |
.version ⇒ Object
Returns the value of attribute version.
6 7 8 |
# File 'lib/carbon_pms.rb', line 6 def version @version end |
Class Method Details
.configure {|_self| ... } ⇒ Object
config/initializers/carbon_pms.rb (for instance)
CarbonPms.configure do |config|
config.host = 'example.com'
config.auth_token = 'abcdef'
config.version = '42'
end
elsewhere
client = CarbonPms::Client.new
19 20 21 22 |
# File 'lib/carbon_pms.rb', line 19 def configure yield self true end |