netstat24 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/netstat24.rb +30 -4
  2. metadata +1 -1
data/lib/netstat24.rb CHANGED
@@ -1,7 +1,3 @@
1
- #
2
- # Api documentation: http://netstat24.com/documentation/podklyuchenie_k_sisteme/collector_api
3
- #
4
-
5
1
  require 'net/http'
6
2
  require 'uri'
7
3
  require 'json'
@@ -29,12 +25,42 @@ class Netstat24
29
25
  send({method: 'track_event', event: event})
30
26
  end
31
27
 
28
+ def track_value(event, value)
29
+ event = event.gsub(" ", "")
30
+ send({method: 'track_value', event: event, value: value})
31
+ end
32
+
33
+ def track_number(event, value)
34
+ event = event.gsub(" ", "")
35
+ send({method: 'track_number', event: event, value: value})
36
+ end
37
+
38
+ def revenue(value)
39
+ send({method: 'revenue', value: value})
40
+ end
41
+
32
42
  def visit
33
43
  send({method: 'visit'})
34
44
  end
35
45
 
46
+ def install(value)
47
+ send({method: 'install', value: value})
48
+ end
49
+
36
50
  def userData(age, sex, friends, app_friends, level)
37
51
  send({method: 'user_data', age: age, gender: sex, nfr: friends, nafr: app_friends, lvl: level})
38
52
  end
39
53
 
54
+ def ad_click(value)
55
+ send({method: 'ad_click', value: value})
56
+ end
57
+
58
+ def invite_sent
59
+ send({method: 'invite_sent'})
60
+ end
61
+
62
+ def invite_response
63
+ send({method: 'invite_response'})
64
+ end
65
+
40
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netstat24
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: