Module: Kontakt
- Defined in:
- lib/kontakt.rb
Defined Under Namespace
Classes: Analytics, Auth, Config, Configuration, Device, Firmware, Venue
Constant Summary
collapse
- API_URL =
"https://api.kontakt.io"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.key ⇒ Object
Returns the value of attribute key.
30
31
32
|
# File 'lib/kontakt.rb', line 30
def key
@key
end
|
Class Method Details
.configuration ⇒ Object
21
22
23
|
# File 'lib/kontakt.rb', line 21
def self.configuration
@configuration ||= Configuration.new
end
|
25
26
27
|
# File 'lib/kontakt.rb', line 25
def self.configure
yield(configuration) if block_given?
end
|
.resource_data ⇒ Object
37
38
39
|
# File 'lib/kontakt.rb', line 37
def self.resource_data
return {:accept => "application/vnd.com.kontakt+json;version=6", :"Api-Key" => Kontakt.configuration.key, :content_type => "application/x-www-form-urlencoded"}
end
|