Class: BitsOnTheRun::Call
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ Call
constructor
A new instance of Call.
Methods inherited from Base
Constructor Details
#initialize ⇒ Call
Returns a new instance of Call.
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/bitsontherun/call.rb', line 6 def initialize @defaults = { :api_nonce => "%08d" % rand(99999999), :api_timestamp => Time.now.to_i, :api_key => BitsOnTheRun.key, :api_format => BitsOnTheRun.format, :api_kit => "ruby-%s" % VERSION } super end |
Instance Method Details
#execute ⇒ Object
17 18 19 20 |
# File 'lib/bitsontherun/call.rb', line 17 def execute response = Curl::Easy.perform(build_url).body_str Response.new(response) end |