Module: HockeyApp::Config
Constant Summary collapse
- ATTRIBUTES =
[:token, :base_uri]
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 |
# File 'lib/hockeyapp/config.rb', line 9 def configure yield self end |
#to_h ⇒ Object
13 14 15 |
# File 'lib/hockeyapp/config.rb', line 13 def to_h Hash[ATTRIBUTES.map{|a|[a, self.send("#{a.to_s}")]}] end |