tito 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 483e40092182ff4404978eb36a57948fccce7e29
4
- data.tar.gz: 7bb411122530628861021608ae127009638738c6
3
+ metadata.gz: df50b861ed8eff233eade3ea29ac679067810d2b
4
+ data.tar.gz: c936887b68381809a95ed0e44cbf90a1fb4d9e11
5
5
  SHA512:
6
- metadata.gz: 12a28e82d98da8d4e112e9d079ae027f0c6a0d94a82dd44b40acf82b2e4350d202070a8e749e80ed807685f2f41a77ea77462a8be30ffbea01a5d9bfb1e7f3fd
7
- data.tar.gz: 42fdb2a5b4a5a868fbb0645164969a6c6f711219fc7508ab2908e530a304d572cd685e099b4a7059e9434a1b6078b8eda54c019d5886992a7ea9befce077e627
6
+ metadata.gz: 6452100251de56ff857ca806ce0055d63583404e865e7913aba8537bcf084d6e143e548a32d7d7f463921f172f951eca7b1d7f2e4f3248a36ac052b475aed0be
7
+ data.tar.gz: cfb2e843ce5a4c43b21d24b42e0e220e78f764d4ca7a2c92decb18c0a800e8c75defad77b3ba2045f4549085534a9929efa42ab61456982699e61d8c424954b6
data/README.md CHANGED
@@ -22,7 +22,9 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ ### Set the API key
26
+
27
+ You can set the API key globally with `Tito.api_key = 'xyz'` or you can set it per request with `Tito::Account.with_api_key('xyz').all` where `Account` is the model you want to interact with and `all` is the finder method.
26
28
 
27
29
  ## Development
28
30
 
data/lib/tito/account.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  module Tito
2
2
  class Account < Base
3
3
  property :name, type: :string
4
+ property :description, type: :string
4
5
  property :slug, type: :string
5
6
 
6
7
  def events
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class DiscountCode < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class EventSettings < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class InterestedUser < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class Question < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class Registration < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class Release < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
@@ -0,0 +1,21 @@
1
+ module Tito
2
+ class Ticket < Tito::Base
3
+ include Eventable
4
+
5
+ property :url, type: :string
6
+ property :name, type: :string
7
+ property :email, type: :string
8
+
9
+ property :company_name, type: :string
10
+
11
+ property :metadata, type: :string
12
+
13
+ property :number, type: :integer
14
+ property :phone_number, type: :string
15
+ property :price, type: :string
16
+ property :reference, type: :string
17
+ property :state, type: :string
18
+ property :tags, type: :string
19
+ property :test_mode, type: :boolean
20
+ end
21
+ end
data/lib/tito/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tito
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -0,0 +1,5 @@
1
+ module Tito
2
+ class WebhookEndpointIncludedTrigger < Tito::Base
3
+ include Eventable
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tito
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Campbell
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-26 00:00:00.000000000 Z
11
+ date: 2016-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client
@@ -71,9 +71,16 @@ files:
71
71
  - lib/tito.rb
72
72
  - lib/tito/account.rb
73
73
  - lib/tito/base.rb
74
+ - lib/tito/discount_code.rb
74
75
  - lib/tito/event.rb
76
+ - lib/tito/event_settings.rb
75
77
  - lib/tito/eventable.rb
78
+ - lib/tito/interested_user.rb
76
79
  - lib/tito/oauth2_middleware.rb
80
+ - lib/tito/question.rb
81
+ - lib/tito/registration.rb
82
+ - lib/tito/release.rb
83
+ - lib/tito/ticket.rb
77
84
  - lib/tito/version.rb
78
85
  - lib/tito/webhook_endpoint.rb
79
86
  - lib/tito/webhook_endpoint_included_trigger.rb