Sha256: 58ac5594f6e3e7ffe3b0b7880ad26a4191f02665104a749c14410215e924bbd4

Contents?: true

Size: 719 Bytes

Versions: 3

Compression:

Stored size: 719 Bytes

Contents

$:.unshift(File.join("..", "lib"))

require 'rubygems'

require 'hoth'
require 'business_objects'

Hoth.init!

statistic_object = StatisticsObject.new(
  :id              => 23,
  :owner_id        => 42,
  :statistic_type  => "Car",
  :timestamp       => Time.now,
  :group_condition => nil
)

event = Event.new(:name => "viewed", :count => 2)

puts "call increment_statistics"
Hoth::Services.increment_statistics([statistic_object], event)

puts Hoth::Services.statistic_of_cars([23, 42, 303, 101]).inspect

# account = Account.new(
#   :firstname => "Dirk",
#   :lastname  => "Breuer",
#   :contract  => "Platinum",
#   :company   => "Galaxy Cats"
# )
# 
# puts "Account ID: #{Hoth::Services.create_account(account)}"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hoth-0.4.2 example/service_client.rb
hoth-0.4.1 example/service_client.rb
hoth-0.4.0 example/service_client.rb