class SiteHook::Webhook
Public Class Methods
host()
click to toggle source
# File lib/site_hook/config.rb, line 84 def self.host end
new(config)
click to toggle source
# File lib/site_hook/config.rb, line 75 def initialize(config) config.each do |option, value| sec = StrExt.mkatvar(option) self.instance_variable_set(:"#{sec}", value) sec2 = StrExt.mkatatvar(option) self.class.class_variable_set(:"#{sec2}", value) end end
Public Instance Methods
host()
click to toggle source
# File lib/site_hook/config.rb, line 87 def host @host || "0.0.0.0" end
inspect()
click to toggle source
# File lib/site_hook/config.rb, line 95 def inspect "#<SiteHook::Webhook host=#{host} port=#{port}>" end
port()
click to toggle source
# File lib/site_hook/config.rb, line 91 def port @port || 9090 end