Permalink
Browse files

Removed mention of service value. It is no more...

  • Loading branch information...
1 parent 7c845b0 commit 099e483bfbba0d168a6b0fdb5b61973bebddf99c @jnunemaker jnunemaker committed Nov 3, 2011
Showing with 6 additions and 8 deletions.
  1. +4 −5 examples/gauges.rb
  2. +2 −3 spec/gauges_spec.rb
View
@@ -6,20 +6,19 @@
ga = Gauges.new(:email => 'john@orderedlist.com', :password => 'testing')
puts 'Listing gauges'
-pp ga.gauges.map { |gauge| gauge['service_value'] }
+pp ga.gauges.map { |gauge| gauge['title'] }
puts
puts 'Creating gauge'
gauge = ga.create_gauge({
- :title => 'Testing',
- :service_value => 'testing.com',
- :tz => 'Eastern Time (US & Canada)'
+ :title => 'Testing',
+ :tz => 'Eastern Time (US & Canada)'
})
pp gauge['title']
puts
puts 'Listing gauges'
-pp ga.gauges.map { |gauge| gauge['service_value'] }
+pp ga.gauges.map { |gauge| gauge['title'] }
puts
puts 'Get gauge'
View
@@ -309,9 +309,8 @@
stub_post('https://secure.gaug.es/gauges', :gauge_create_invalid)
@client = Gauges.new(:token => 'asdf')
@response = @client.create_gauge({
- :title => 'Testing',
- :service_value => 'testing.com',
- :tz => 'PooPoo'
+ :title => 'Testing',
+ :tz => 'PooPoo'
})
end

0 comments on commit 099e483

Please sign in to comment.