gonebusy-ruby-client 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e102e149359d5e7dd502b7f36732f8dc5574fd8
4
- data.tar.gz: 219da41ca505e762b503ec741426ac148ec4cb55
3
+ metadata.gz: e24d1f2fc83e2dd369d45a373eca1825f93aef70
4
+ data.tar.gz: 88c8d4a7ad7c828cf05ad00e9522713aee90faaf
5
5
  SHA512:
6
- metadata.gz: 8417e7f599b6ac0445108003a324a1c4f5270cb4e463bbaedc4f9abfcf23d254f4a6d0003f4be82538e94035964ab434c0ce7c9b23740d9b90e49e2a055165fe
7
- data.tar.gz: 6d348ac93f074c3c4caac472795adbbd6f61f836f78ae8a59c434a84e655996dc3101e2a9a6a7e9cc5ee779c772b131c5eb753091a345f4ef5dcd5a49ddf49e7
6
+ metadata.gz: bbd9619704d51f4483d3fb1210c296b98df6c2e7c6fa85c70b863293ecd5bbb8f6f88277d14c4e17204fc3745dc68c067d3fffecab36b80f7e15b88afdfd8641
7
+ data.tar.gz: d011b67e307bb73bc3adf3b02a58e0454df7b67b7af4d1ff9c059b06ab89ff0d5c9891069ebaaf79633dccb6fd84bbb72d8d82fa9c49bda46638889264e1e522
data/README.md CHANGED
@@ -14,9 +14,9 @@ This client library is a Ruby gem which can be compiled and used in your Ruby an
14
14
 
15
15
  1. Open the command line interface or the terminal and navigate to the folder containing the source code.
16
16
  2. Run ``` gem build gonebusy.gemspec ``` to build the gem.
17
- 3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.0.3.gem ```
17
+ 3. Once built, the gem can be installed on the current work environment using ``` gem install gonebusy-0.0.8.gem ```
18
18
 
19
- ![Building Gem](http://apidocs.io/illustration/ruby?step=buildSDK&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy-Ruby&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
19
+ ![Building Gem](http://apidocs.io/illustration/ruby?step=buildSDK&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy-Ruby&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
20
20
 
21
21
  ## How to Use
22
22
 
@@ -26,41 +26,41 @@ The following section explains how to use the Gonebusy Ruby Gem in a new Rails p
26
26
 
27
27
  Close any existing projects in RubyMine™ by selecting ``` File -> Close Project ```. Next, click on ``` Create New Project ``` to create a new project from scratch.
28
28
 
29
- ![Create a new project in RubyMine](http://apidocs.io/illustration/ruby?step=createNewProject0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
29
+ ![Create a new project in RubyMine](http://apidocs.io/illustration/ruby?step=createNewProject0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
30
30
 
31
31
  Next, provide ``` TestApp ``` as the project name, choose ``` Rails Application ``` as the project type, and click ``` OK ```.
32
32
 
33
- ![Create a new Rails Application in RubyMine - step 1](http://apidocs.io/illustration/ruby?step=createNewProject1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
33
+ ![Create a new Rails Application in RubyMine - step 1](http://apidocs.io/illustration/ruby?step=createNewProject1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
34
34
 
35
35
  In the next dialog make sure that correct *Ruby SDK* is being used (minimum 2.0.0) and click ``` OK ```.
36
36
 
37
- ![Create a new Rails Application in RubyMine - step 2](http://apidocs.io/illustration/ruby?step=createNewProject2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
37
+ ![Create a new Rails Application in RubyMine - step 2](http://apidocs.io/illustration/ruby?step=createNewProject2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
38
38
 
39
39
  This will create a new Rails Application project with an existing set of files and folder.
40
40
 
41
41
  ### 2. Add reference of the gem
42
42
 
43
- In order to use the Gonebusy gem in the new project we must add a gem reference. Locate the ```Gemfile``` in the *Project Explorer* window under the ``` TestApp ``` project node. The file contains references to all gems being used in the project. Here, add the reference to the library gem by adding the following line: ``` gem 'gonebusy', '~> 0.0.3' ```
43
+ In order to use the Gonebusy gem in the new project we must add a gem reference. Locate the ```Gemfile``` in the *Project Explorer* window under the ``` TestApp ``` project node. The file contains references to all gems being used in the project. Here, add the reference to the library gem by adding the following line: ``` gem 'gonebusy', '~> 0.0.8' ```
44
44
 
45
- ![Add references of the Gemfile](http://apidocs.io/illustration/ruby?step=addReference&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
45
+ ![Add references of the Gemfile](http://apidocs.io/illustration/ruby?step=addReference&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
46
46
 
47
47
  ### 3. Adding a new Rails Controller
48
48
 
49
49
  Once the ``` TestApp ``` project is created, a folder named ``` controllers ``` will be visible in the *Project Explorer* under the following path: ``` TestApp > app > controllers ```. Right click on this folder and select ``` New -> Run Rails Generator... ```.
50
50
 
51
- ![Run Rails Generator on Controllers Folder](http://apidocs.io/illustration/ruby?step=addCode0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
51
+ ![Run Rails Generator on Controllers Folder](http://apidocs.io/illustration/ruby?step=addCode0&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
52
52
 
53
53
  Selecting the said option will popup a small window where the generator names are displayed. Here, select the ``` controller ``` template.
54
54
 
55
- ![Create a new Controller](http://apidocs.io/illustration/ruby?step=addCode1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
55
+ ![Create a new Controller](http://apidocs.io/illustration/ruby?step=addCode1&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
56
56
 
57
57
  Next, a popup window will ask you for a Controller name and included Actions. For controller name provide ``` Hello ``` and include an action named ``` Index ``` and click ``` OK ```.
58
58
 
59
- ![Add a new Controller](http://apidocs.io/illustration/ruby?step=addCode2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
59
+ ![Add a new Controller](http://apidocs.io/illustration/ruby?step=addCode2&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
60
60
 
61
61
  A new controller class anmed ``` HelloController ``` will be created in a file named ``` hello_controller.rb ``` containing a method named ``` Index ```. In this method, add code for initialization and a sample for its usage.
62
62
 
63
- ![Initialize the library](http://apidocs.io/illustration/ruby?step=addCode3&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3)
63
+ ![Initialize the library](http://apidocs.io/illustration/ruby?step=addCode3&workspaceFolder=Gonebusy-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8)
64
64
 
65
65
  ## How to Test
66
66
 
@@ -91,7 +91,7 @@ client = Gonebusy::GonebusyClient.new(authorization)
91
91
 
92
92
  The added initlization code can be debugged by putting a breakpoint in the ``` Index ``` method and running the project in debug mode by selecting ``` Run -> Debug 'Development: TestApp' ```.
93
93
 
94
- ![Debug the TestApp](http://apidocs.io/illustration/ruby?step=addCode4&workspaceFolder=GoneBusy%2011-17-16-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.3&initLine=client%2520%253D%2520GonebusyClient.new%2528%2527authorization%2527%2529)
94
+ ![Debug the TestApp](http://apidocs.io/illustration/ruby?step=addCode4&workspaceFolder=GoneBusy%2011-17-16-Ruby&workspaceName=Gonebusy&projectName=gonebusy&gemName=gonebusy&gemVer=0.0.8&initLine=client%2520%253D%2520GonebusyClient.new%2528%2527authorization%2527%2529)
95
95
 
96
96
  ## Class Reference
97
97
 
@@ -11,7 +11,7 @@ module Gonebusy
11
11
  attr_accessor :description
12
12
 
13
13
  # gender of Resource, if applicable
14
- # @return [Integer]
14
+ # @return [String]
15
15
  attr_accessor :gender
16
16
 
17
17
  # id of Resource
@@ -26,6 +26,10 @@ module Gonebusy
26
26
  # @return [Integer]
27
27
  attr_accessor :owner_id
28
28
 
29
+ # if Calendar is primary, if applicable
30
+ # @return [Boolean]
31
+ attr_accessor :primary_cal
32
+
29
33
  # type of Resource
30
34
  # @return [String]
31
35
  attr_accessor :resource_type
@@ -44,6 +48,7 @@ module Gonebusy
44
48
  @hash["id"] = "id"
45
49
  @hash["name"] = "name"
46
50
  @hash["owner_id"] = "owner_id"
51
+ @hash["primary_cal"] = "primary_cal"
47
52
  @hash["resource_type"] = "resource_type"
48
53
  @hash["thing_type_id"] = "thing_type_id"
49
54
  end
@@ -56,6 +61,7 @@ module Gonebusy
56
61
  id = nil,
57
62
  name = nil,
58
63
  owner_id = nil,
64
+ primary_cal = nil,
59
65
  resource_type = nil,
60
66
  thing_type_id = nil)
61
67
  @capacity = capacity
@@ -64,6 +70,7 @@ module Gonebusy
64
70
  @id = id
65
71
  @name = name
66
72
  @owner_id = owner_id
73
+ @primary_cal = primary_cal
67
74
  @resource_type = resource_type
68
75
  @thing_type_id = thing_type_id
69
76
  end
@@ -80,6 +87,7 @@ module Gonebusy
80
87
  id = hash["id"]
81
88
  name = hash["name"]
82
89
  owner_id = hash["owner_id"]
90
+ primary_cal = hash["primary_cal"]
83
91
  resource_type = hash["resource_type"]
84
92
  thing_type_id = hash["thing_type_id"]
85
93
 
@@ -90,6 +98,7 @@ module Gonebusy
90
98
  id,
91
99
  name,
92
100
  owner_id,
101
+ primary_cal,
93
102
  resource_type,
94
103
  thing_type_id)
95
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonebusy-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Agranov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-07 00:00:00.000000000 Z
11
+ date: 2017-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday