Module: HockeyApp::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/hockeyapp/config.rb

Constant Summary collapse

ATTRIBUTES =
[:token, :base_uri]

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



9
10
11
# File 'lib/hockeyapp/config.rb', line 9

def configure
  yield self
end

#to_hObject



13
14
15
# File 'lib/hockeyapp/config.rb', line 13

def to_h
  Hash[ATTRIBUTES.map{|a|[a, self.send("#{a.to_s}")]}]
end