class Zenlight::Configuration
Attributes
api_path[RW]
email[RW]
password[RW]
rpm[RW]
subdomain[RW]
token[RW]
uri[R]
Public Class Methods
new()
click to toggle source
# File lib/zenlight/configuration.rb, line 14 def initialize self.rpm = 700 self.api_path = "/api/v2" self.subdomain = ENV['ZENLIGHT_SUBDOMAIN'] self.email = ENV['ZENLIGHT_EMAIL'] self.password = ENV['ZENLIGHT_PASSWORD'] self.token = ENV['ZENLIGHT_TOKEN'] end
Public Instance Methods
[](value)
click to toggle source
# File lib/zenlight/configuration.rb, line 22 def [](value) self.public_send(value) end
subdomain=(value)
click to toggle source
# File lib/zenlight/configuration.rb, line 7 def subdomain=(value) @subdomain = value @uri = URI.parse("https://#{@subdomain}.zendesk.com") end