class GatherContent::Api::Config
Attributes
api_key[W]
host[W]
port[W]
username[W]
Public Class Methods
instance()
click to toggle source
# File lib/gather_content/api/config.rb, line 10 def self.instance @instance ||= self.new end
new()
click to toggle source
# File lib/gather_content/api/config.rb, line 31 def initialize end
run() { |instance| ... }
click to toggle source
# File lib/gather_content/api/config.rb, line 6 def self.run yield self.instance end
Public Instance Methods
api_key()
click to toggle source
# File lib/gather_content/api/config.rb, line 18 def api_key @api_key || ENV['GATHER_CONTENT_API_KEY'] end
host()
click to toggle source
# File lib/gather_content/api/config.rb, line 22 def host @host || ENV['GATHER_CONTENT_API_HOST'] || "https://api.gathercontent.com" end
port()
click to toggle source
# File lib/gather_content/api/config.rb, line 26 def port @port || ENV['GATHER_CONTENT_API_PORT'] || "443" end
username()
click to toggle source
# File lib/gather_content/api/config.rb, line 14 def username @username || ENV['GATHER_CONTENT_API_USERNAME'] end