googlecal 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.gitignore +1 -1
- data/.travis.yml +4 -1
- data/README.md +5 -2
- data/bin/console +1 -0
- data/client_secret.json.enc +2 -0
- data/docs/Gemfile.html +98 -0
- data/docs/Gemfile_lock.html +187 -0
- data/docs/Googlecal.html +384 -0
- data/docs/Googlecal/Base.html +319 -0
- data/docs/Googlecal/GCalendar.html +265 -0
- data/docs/Googlecal/GEvent.html +418 -0
- data/docs/LICENSE.html +115 -0
- data/docs/Object.html +113 -0
- data/docs/README_md.html +161 -0
- data/docs/Rakefile.html +99 -0
- data/docs/bin/setup.html +99 -0
- data/docs/client_secret_json.html +96 -0
- data/docs/created.rid +19 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +590 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/googlecal_gemspec.html +126 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +111 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +142 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +109 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +228 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +191 -0
- data/lib/googlecal.rb +2 -157
- data/lib/googlecal/base.rb +191 -0
- data/lib/googlecal/gcalendar.rb +27 -0
- data/lib/googlecal/gevent.rb +97 -0
- data/lib/googlecal/version.rb +1 -1
- metadata +63 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e196bbdc8ccf75f2287d0f757a8533d48f9845e1
|
4
|
+
data.tar.gz: 2c717c3cfef15c6d2995ebc0c764d87e95b79f00
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1542cf158b40011d6b11f532c5b11d1df52f048d5e62d3566dced9ff89cc1e866dcd5bb3cb885cedb9d2da0d0b013c38dbf086f40f7871c64596c4bf84155b9d
|
7
|
+
data.tar.gz: c9354f8e4c52cd2d6286efa834e1f6d267022cdb80ff3bfe40200f9abc306d1cb1384a22df0682eecd9d427dc95e4e90b67b1434dc88117d4c7294d43e3988a6
|
data/.DS_Store
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -2,4 +2,7 @@ sudo: false
|
|
2
2
|
language: ruby
|
3
3
|
rvm:
|
4
4
|
- 2.3.1
|
5
|
-
before_install:
|
5
|
+
before_install:
|
6
|
+
- openssl aes-256-cbc -K $encrypted_a7b29cc004b5_key -iv $encrypted_a7b29cc004b5_iv
|
7
|
+
-in client_secret.json.enc -out client_secret.json -d
|
8
|
+
- gem install bundler -v 1.13.6
|
data/README.md
CHANGED
@@ -1,11 +1,14 @@
|
|
1
|
+
|
2
|
+
# Googlecal
|
1
3
|
[![Build
|
2
4
|
Status](https://travis-ci.org/Ennovar/googlecal.svg?branch=master)](https://travis-ci.org/Ennovar/googlecal)
|
3
|
-
|
5
|
+
[![Gem
|
6
|
+
Version](https://badge.fury.io/rb/googlecal.svg)](https://badge.fury.io/rb/googlecal)
|
7
|
+
|
4
8
|
_simple wrapper for google calendar api for ruby_
|
5
9
|
|
6
10
|
## This project is in Alpha!!!
|
7
11
|
|
8
|
-
|
9
12
|
## Testing Setup
|
10
13
|
Before you are ready to start developing on the project there are a
|
11
14
|
couple steps to follow
|
data/bin/console
CHANGED
data/docs/Gemfile.html
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile - Googlecal</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="file">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="project-metadata">
|
56
|
+
<div id="fileindex-section" class="nav-section">
|
57
|
+
<h3>Pages</h3>
|
58
|
+
|
59
|
+
<ul class="link-list">
|
60
|
+
|
61
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
62
|
+
|
63
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
64
|
+
|
65
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
66
|
+
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
|
69
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
70
|
+
|
71
|
+
<li><a href="./bin/setup.html">setup</a>
|
72
|
+
|
73
|
+
<li><a href="./client_secret_json.html">client_secret.json</a>
|
74
|
+
|
75
|
+
<li><a href="./googlecal_gemspec.html">googlecal.gemspec</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-label="Page Gemfile">
|
84
|
+
|
85
|
+
<p>source '<a href="https://rubygems.org">rubygems.org</a>'</p>
|
86
|
+
|
87
|
+
<p># Specify your gem's dependencies in <a
|
88
|
+
href="googlecal_gemspec.html">googlecal.gemspec</a> gemspec</p>
|
89
|
+
</main>
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<footer id="validator-badges" role="contentinfo">
|
94
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
95
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.3.0.
|
96
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
97
|
+
</footer>
|
98
|
+
|
@@ -0,0 +1,187 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile.lock - Googlecal</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="file">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="project-metadata">
|
56
|
+
<div id="fileindex-section" class="nav-section">
|
57
|
+
<h3>Pages</h3>
|
58
|
+
|
59
|
+
<ul class="link-list">
|
60
|
+
|
61
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
62
|
+
|
63
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
64
|
+
|
65
|
+
<li><a href="./LICENSE.html">LICENSE</a>
|
66
|
+
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
|
69
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
70
|
+
|
71
|
+
<li><a href="./bin/setup.html">setup</a>
|
72
|
+
|
73
|
+
<li><a href="./client_secret_json.html">client_secret.json</a>
|
74
|
+
|
75
|
+
<li><a href="./googlecal_gemspec.html">googlecal.gemspec</a>
|
76
|
+
|
77
|
+
</ul>
|
78
|
+
</div>
|
79
|
+
|
80
|
+
</div>
|
81
|
+
</nav>
|
82
|
+
|
83
|
+
<main role="main" aria-label="Page Gemfile.lock">
|
84
|
+
|
85
|
+
<p>PATH</p>
|
86
|
+
|
87
|
+
<pre>remote: .
|
88
|
+
specs:
|
89
|
+
googlecal (0.1.0)
|
90
|
+
google-api-client</pre>
|
91
|
+
|
92
|
+
<p>GEM</p>
|
93
|
+
|
94
|
+
<pre>remote: https://rubygems.org/
|
95
|
+
specs:
|
96
|
+
addressable (2.5.0)
|
97
|
+
public_suffix (~> 2.0, >= 2.0.2)
|
98
|
+
declarative (0.0.9)
|
99
|
+
declarative-option (0.1.0)
|
100
|
+
diff-lcs (1.3)
|
101
|
+
dotenv (2.1.1)
|
102
|
+
faraday (0.11.0)
|
103
|
+
multipart-post (>= 1.2, < 3)
|
104
|
+
google-api-client (0.10.1)
|
105
|
+
addressable (~> 2.3)
|
106
|
+
googleauth (~> 0.5)
|
107
|
+
httpclient (~> 2.7)
|
108
|
+
hurley (~> 0.1)
|
109
|
+
memoist (~> 0.11)
|
110
|
+
mime-types (>= 1.6)
|
111
|
+
representable (~> 3.0)
|
112
|
+
retriable (>= 2.0, < 4.0)
|
113
|
+
googleauth (0.5.1)
|
114
|
+
faraday (~> 0.9)
|
115
|
+
jwt (~> 1.4)
|
116
|
+
logging (~> 2.0)
|
117
|
+
memoist (~> 0.12)
|
118
|
+
multi_json (~> 1.11)
|
119
|
+
os (~> 0.9)
|
120
|
+
signet (~> 0.7)
|
121
|
+
httpclient (2.8.3)
|
122
|
+
hurley (0.2)
|
123
|
+
jwt (1.5.6)
|
124
|
+
little-plugger (1.1.4)
|
125
|
+
logging (2.2.0)
|
126
|
+
little-plugger (~> 1.1)
|
127
|
+
multi_json (~> 1.10)
|
128
|
+
memoist (0.15.0)
|
129
|
+
mime-types (3.1)
|
130
|
+
mime-types-data (~> 3.2015)
|
131
|
+
mime-types-data (3.2016.0521)
|
132
|
+
multi_json (1.12.1)
|
133
|
+
multipart-post (2.0.0)
|
134
|
+
os (0.9.6)
|
135
|
+
public_suffix (2.0.5)
|
136
|
+
rake (10.5.0)
|
137
|
+
representable (3.0.3)
|
138
|
+
declarative (< 0.1.0)
|
139
|
+
declarative-option (< 0.2.0)
|
140
|
+
uber (< 0.2.0)
|
141
|
+
retriable (3.0.1)
|
142
|
+
rspec (3.5.0)
|
143
|
+
rspec-core (~> 3.5.0)
|
144
|
+
rspec-expectations (~> 3.5.0)
|
145
|
+
rspec-mocks (~> 3.5.0)
|
146
|
+
rspec-core (3.5.4)
|
147
|
+
rspec-support (~> 3.5.0)
|
148
|
+
rspec-expectations (3.5.0)
|
149
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
150
|
+
rspec-support (~> 3.5.0)
|
151
|
+
rspec-mocks (3.5.0)
|
152
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
153
|
+
rspec-support (~> 3.5.0)
|
154
|
+
rspec-support (3.5.0)
|
155
|
+
signet (0.7.3)
|
156
|
+
addressable (~> 2.3)
|
157
|
+
faraday (~> 0.9)
|
158
|
+
jwt (~> 1.5)
|
159
|
+
multi_json (~> 1.10)
|
160
|
+
uber (0.1.0)</pre>
|
161
|
+
|
162
|
+
<p>PLATFORMS</p>
|
163
|
+
|
164
|
+
<pre class="ruby"><span class="ruby-identifier">ruby</span>
|
165
|
+
</pre>
|
166
|
+
|
167
|
+
<p>DEPENDENCIES</p>
|
168
|
+
|
169
|
+
<pre>bundler (~> 1.13)
|
170
|
+
dotenv
|
171
|
+
googlecal!
|
172
|
+
rake (~> 10.0)
|
173
|
+
rspec (~> 3.0)</pre>
|
174
|
+
|
175
|
+
<p>BUNDLED WITH</p>
|
176
|
+
|
177
|
+
<pre>1.13.6</pre>
|
178
|
+
</main>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
<footer id="validator-badges" role="contentinfo">
|
183
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
184
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.3.0.
|
185
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
186
|
+
</footer>
|
187
|
+
|
data/docs/Googlecal.html
ADDED
@@ -0,0 +1,384 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module Googlecal - Googlecal</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="module">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
<!-- Method Quickref -->
|
61
|
+
<div id="method-list-section" class="nav-section">
|
62
|
+
<h3>Methods</h3>
|
63
|
+
|
64
|
+
<ul class="link-list" role="directory">
|
65
|
+
|
66
|
+
<li ><a href="#method-c-create">::create</a>
|
67
|
+
|
68
|
+
<li ><a href="#method-c-find">::find</a>
|
69
|
+
|
70
|
+
<li ><a href="#method-i-delete">#delete</a>
|
71
|
+
|
72
|
+
<li ><a href="#method-i-delete_event">#delete_event</a>
|
73
|
+
|
74
|
+
<li ><a href="#method-i-get_event">#get_event</a>
|
75
|
+
|
76
|
+
<li ><a href="#method-i-update">#update</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<main role="main" aria-labelledby="module-Googlecal">
|
85
|
+
<h1 id="module-Googlecal" class="module">
|
86
|
+
module Googlecal
|
87
|
+
</h1>
|
88
|
+
|
89
|
+
<section class="description">
|
90
|
+
|
91
|
+
<p>A google calendar object</p>
|
92
|
+
|
93
|
+
<p>A google calendar event object</p>
|
94
|
+
|
95
|
+
</section>
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<section class="constants-list">
|
107
|
+
<header>
|
108
|
+
<h3>Constants</h3>
|
109
|
+
</header>
|
110
|
+
<dl>
|
111
|
+
|
112
|
+
<dt id="VERSION">VERSION
|
113
|
+
|
114
|
+
<dd>
|
115
|
+
|
116
|
+
|
117
|
+
</dl>
|
118
|
+
</section>
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
125
|
+
<header>
|
126
|
+
<h3>Public Class Methods</h3>
|
127
|
+
</header>
|
128
|
+
|
129
|
+
|
130
|
+
<div id="method-c-create" class="method-detail ">
|
131
|
+
|
132
|
+
<div class="method-heading">
|
133
|
+
<span class="method-name">create</span><span
|
134
|
+
class="method-args">(event_params, calendar_id = Base.calendar_id)</span>
|
135
|
+
|
136
|
+
<span class="method-click-advice">click to toggle source</span>
|
137
|
+
|
138
|
+
</div>
|
139
|
+
|
140
|
+
|
141
|
+
<div class="method-description">
|
142
|
+
|
143
|
+
<p>create and save a new event through googles api</p>
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
<div class="method-source-code" id="create-source">
|
149
|
+
<pre><span class="ruby-comment"># File lib/googlecal/gevent.rb, line 52</span>
|
150
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">create</span>(<span class="ruby-identifier">event_params</span>, <span class="ruby-identifier">calendar_id</span> = <span class="ruby-constant">Base</span>.<span class="ruby-identifier">calendar_id</span>)
|
151
|
+
<span class="ruby-comment"># event creation</span>
|
152
|
+
<span class="ruby-identifier">event</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">insert_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-constant">Google</span><span class="ruby-operator">::</span><span class="ruby-constant">Apis</span><span class="ruby-operator">::</span><span class="ruby-constant">CalendarV3</span><span class="ruby-operator">::</span><span class="ruby-constant">Event</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">event_params</span>))
|
153
|
+
<span class="ruby-keyword">if</span> <span class="ruby-identifier">event</span>
|
154
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">GEvent</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">event</span>)
|
155
|
+
<span class="ruby-keyword">else</span>
|
156
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
|
157
|
+
<span class="ruby-keyword">end</span>
|
158
|
+
<span class="ruby-keyword">end</span></pre>
|
159
|
+
</div>
|
160
|
+
|
161
|
+
</div>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
<div id="method-c-find" class="method-detail ">
|
170
|
+
|
171
|
+
<div class="method-heading">
|
172
|
+
<span class="method-name">find</span><span
|
173
|
+
class="method-args">(event_id, calendar_id = Base.calendar_id)</span>
|
174
|
+
|
175
|
+
<span class="method-click-advice">click to toggle source</span>
|
176
|
+
|
177
|
+
</div>
|
178
|
+
|
179
|
+
|
180
|
+
<div class="method-description">
|
181
|
+
|
182
|
+
<p>find google calendar event by event_id <code>:event_id:</code> - Unique
|
183
|
+
event id given by google cal api</p>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<div class="method-source-code" id="find-source">
|
189
|
+
<pre><span class="ruby-comment"># File lib/googlecal/gevent.rb, line 80</span>
|
190
|
+
<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">event_id</span>, <span class="ruby-identifier">calendar_id</span> = <span class="ruby-constant">Base</span>.<span class="ruby-identifier">calendar_id</span>)
|
191
|
+
<span class="ruby-comment"># find by google event id</span>
|
192
|
+
<span class="ruby-keyword">begin</span>
|
193
|
+
<span class="ruby-identifier">event</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">get_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-identifier">event_id</span>)
|
194
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">event</span>
|
195
|
+
<span class="ruby-identifier">catch</span> <span class="ruby-identifier">e</span>
|
196
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span>
|
197
|
+
<span class="ruby-keyword">end</span>
|
198
|
+
<span class="ruby-keyword">end</span></pre>
|
199
|
+
</div>
|
200
|
+
|
201
|
+
</div>
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
</section>
|
210
|
+
|
211
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
212
|
+
<header>
|
213
|
+
<h3>Public Instance Methods</h3>
|
214
|
+
</header>
|
215
|
+
|
216
|
+
|
217
|
+
<div id="method-i-delete" class="method-detail ">
|
218
|
+
|
219
|
+
<div class="method-heading">
|
220
|
+
<span class="method-name">delete</span><span
|
221
|
+
class="method-args">(calendar_id = Base.calendar_id)</span>
|
222
|
+
|
223
|
+
<span class="method-click-advice">click to toggle source</span>
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
|
228
|
+
<div class="method-description">
|
229
|
+
|
230
|
+
<p>delete event by event.id in googles api DELETES EVENT</p>
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
<div class="method-source-code" id="delete-source">
|
236
|
+
<pre><span class="ruby-comment"># File lib/googlecal/gevent.rb, line 64</span>
|
237
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete</span>(<span class="ruby-identifier">calendar_id</span> = <span class="ruby-constant">Base</span>.<span class="ruby-identifier">calendar_id</span>)
|
238
|
+
<span class="ruby-comment"># delete instance of event</span>
|
239
|
+
<span class="ruby-comment"># update event instance</span>
|
240
|
+
<span class="ruby-ivar">@event</span> = <span class="ruby-identifier">service</span>.<span class="ruby-identifier">delete_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-identifier">id</span>)
|
241
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
|
242
|
+
<span class="ruby-keyword">end</span></pre>
|
243
|
+
</div>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
</div>
|
251
|
+
|
252
|
+
|
253
|
+
<div id="method-i-delete_event" class="method-detail ">
|
254
|
+
|
255
|
+
<div class="method-heading">
|
256
|
+
<span class="method-name">delete_event</span><span
|
257
|
+
class="method-args">(calendar_id = 'primary', event_id)</span>
|
258
|
+
|
259
|
+
<span class="method-click-advice">click to toggle source</span>
|
260
|
+
|
261
|
+
</div>
|
262
|
+
|
263
|
+
|
264
|
+
<div class="method-description">
|
265
|
+
|
266
|
+
<p>Delete an even from a calendar by event id</p>
|
267
|
+
|
268
|
+
<h4 id="method-i-delete_event-label-Attributes">Attributes<span><a href="#method-i-delete_event-label-Attributes">¶</a> <a href="#top">↑</a></span></h4>
|
269
|
+
<ul><li>
|
270
|
+
<p><code>:calendar_id:</code> - Unique id of calendar</p>
|
271
|
+
</li><li>
|
272
|
+
<p><code>:event_id:</code> - Unique id of event to be deleted</p>
|
273
|
+
</li></ul>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
<div class="method-source-code" id="delete_event-source">
|
279
|
+
<pre><span class="ruby-comment"># File lib/googlecal/base.rb, line 66</span>
|
280
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">delete_event</span>(<span class="ruby-identifier">calendar_id</span> = <span class="ruby-string">'primary'</span>, <span class="ruby-identifier">event_id</span>)
|
281
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">@@calendar_service</span>.<span class="ruby-identifier">delete_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-identifier">event_id</span>)
|
282
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>
|
283
|
+
<span class="ruby-keyword">end</span></pre>
|
284
|
+
</div>
|
285
|
+
|
286
|
+
</div>
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
</div>
|
292
|
+
|
293
|
+
|
294
|
+
<div id="method-i-get_event" class="method-detail ">
|
295
|
+
|
296
|
+
<div class="method-heading">
|
297
|
+
<span class="method-name">get_event</span><span
|
298
|
+
class="method-args">(calendar_id = 'primary', event_id)</span>
|
299
|
+
|
300
|
+
<span class="method-click-advice">click to toggle source</span>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
<div class="method-description">
|
306
|
+
|
307
|
+
<p>Get an event by event id</p>
|
308
|
+
|
309
|
+
<h4 id="method-i-get_event-label-Attributes">Attributes<span><a href="#method-i-get_event-label-Attributes">¶</a> <a href="#top">↑</a></span></h4>
|
310
|
+
<ul><li>
|
311
|
+
<p><code>:calendar_id:</code> - Unique id of calendar</p>
|
312
|
+
</li><li>
|
313
|
+
<p><code>:event_id:</code> - Unique id of event</p>
|
314
|
+
</li></ul>
|
315
|
+
|
316
|
+
<p>TODO: for some reason this part is not working with some of the tests i
|
317
|
+
have tried with it</p>
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
<div class="method-source-code" id="get_event-source">
|
323
|
+
<pre><span class="ruby-comment"># File lib/googlecal/base.rb, line 79</span>
|
324
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_event</span>(<span class="ruby-identifier">calendar_id</span> = <span class="ruby-string">'primary'</span>, <span class="ruby-identifier">event_id</span>)
|
325
|
+
<span class="ruby-identifier">result</span> = <span class="ruby-identifier">@@calendar_service</span>.<span class="ruby-identifier">get_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-identifier">event_id</span>)
|
326
|
+
<span class="ruby-keyword">return</span> <span class="ruby-identifier">result</span>
|
327
|
+
<span class="ruby-keyword">end</span></pre>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
</div>
|
331
|
+
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</div>
|
336
|
+
|
337
|
+
|
338
|
+
<div id="method-i-update" class="method-detail ">
|
339
|
+
|
340
|
+
<div class="method-heading">
|
341
|
+
<span class="method-name">update</span><span
|
342
|
+
class="method-args">(params, calendar_id = Base.calendar_id)</span>
|
343
|
+
|
344
|
+
<span class="method-click-advice">click to toggle source</span>
|
345
|
+
|
346
|
+
</div>
|
347
|
+
|
348
|
+
|
349
|
+
<div class="method-description">
|
350
|
+
|
351
|
+
<p>update google calendar event by event.id</p>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
<div class="method-source-code" id="update-source">
|
357
|
+
<pre><span class="ruby-comment"># File lib/googlecal/gevent.rb, line 72</span>
|
358
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">update</span>(<span class="ruby-identifier">params</span>, <span class="ruby-identifier">calendar_id</span> = <span class="ruby-constant">Base</span>.<span class="ruby-identifier">calendar_id</span>)
|
359
|
+
<span class="ruby-comment"># delta update</span>
|
360
|
+
<span class="ruby-comment"># TODO: update calendar event</span>
|
361
|
+
<span class="ruby-identifier">service</span>.<span class="ruby-identifier">update_event</span>(<span class="ruby-identifier">calendar_id</span>, <span class="ruby-identifier">id</span>, <span class="ruby-ivar">@event</span>)
|
362
|
+
<span class="ruby-keyword">end</span></pre>
|
363
|
+
</div>
|
364
|
+
|
365
|
+
</div>
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
</div>
|
371
|
+
|
372
|
+
|
373
|
+
</section>
|
374
|
+
|
375
|
+
</section>
|
376
|
+
</main>
|
377
|
+
|
378
|
+
|
379
|
+
<footer id="validator-badges" role="contentinfo">
|
380
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
381
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.3.0.
|
382
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
383
|
+
</footer>
|
384
|
+
|