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 +4 -4
- data/README.md +3 -1
- data/lib/tito/account.rb +1 -0
- data/lib/tito/discount_code.rb +5 -0
- data/lib/tito/event_settings.rb +5 -0
- data/lib/tito/interested_user.rb +5 -0
- data/lib/tito/question.rb +5 -0
- data/lib/tito/registration.rb +5 -0
- data/lib/tito/release.rb +5 -0
- data/lib/tito/ticket.rb +21 -0
- data/lib/tito/version.rb +1 -1
- data/lib/tito/webhook_endpoint_included_trigger.rb +5 -0
- metadata +9 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df50b861ed8eff233eade3ea29ac679067810d2b
|
4
|
+
data.tar.gz: c936887b68381809a95ed0e44cbf90a1fb4d9e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
data/lib/tito/release.rb
ADDED
data/lib/tito/ticket.rb
ADDED
@@ -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
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
|
+
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-
|
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
|