contentful 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. data/.README.md.swp +0 -0
  2. data/.gitignore +2 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +10 -0
  5. data/ChangeLog.md +3 -0
  6. data/Gemfile +3 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +193 -0
  9. data/Rakefile +30 -0
  10. data/contentful.gemspec +31 -0
  11. data/do_request.sh +5 -0
  12. data/doc/Contentful.html +131 -0
  13. data/doc/Contentful/AccessDenied.html +158 -0
  14. data/doc/Contentful/Array.html +346 -0
  15. data/doc/Contentful/Asset.html +315 -0
  16. data/doc/Contentful/BadRequest.html +158 -0
  17. data/doc/Contentful/Client.html +1407 -0
  18. data/doc/Contentful/ContentType.html +183 -0
  19. data/doc/Contentful/DynamicEntry.html +333 -0
  20. data/doc/Contentful/Entry.html +198 -0
  21. data/doc/Contentful/Error.html +413 -0
  22. data/doc/Contentful/Field.html +161 -0
  23. data/doc/Contentful/File.html +160 -0
  24. data/doc/Contentful/Link.html +275 -0
  25. data/doc/Contentful/Locale.html +161 -0
  26. data/doc/Contentful/NotFound.html +158 -0
  27. data/doc/Contentful/Request.html +669 -0
  28. data/doc/Contentful/Resource.html +606 -0
  29. data/doc/Contentful/Resource/AssetFields.html +413 -0
  30. data/doc/Contentful/Resource/AssetFields/ClassMethods.html +174 -0
  31. data/doc/Contentful/Resource/ClassMethods.html +271 -0
  32. data/doc/Contentful/Resource/Fields.html +398 -0
  33. data/doc/Contentful/Resource/Fields/ClassMethods.html +187 -0
  34. data/doc/Contentful/Resource/SystemProperties.html +444 -0
  35. data/doc/Contentful/Resource/SystemProperties/ClassMethods.html +174 -0
  36. data/doc/Contentful/ResourceBuilder.html +1400 -0
  37. data/doc/Contentful/Response.html +546 -0
  38. data/doc/Contentful/ServerError.html +158 -0
  39. data/doc/Contentful/Space.html +183 -0
  40. data/doc/Contentful/Support.html +198 -0
  41. data/doc/Contentful/Unauthorized.html +158 -0
  42. data/doc/Contentful/UnparsableJson.html +158 -0
  43. data/doc/Contentful/UnparsableResource.html +158 -0
  44. data/doc/_index.html +410 -0
  45. data/doc/class_list.html +54 -0
  46. data/doc/css/common.css +1 -0
  47. data/doc/css/full_list.css +57 -0
  48. data/doc/css/style.css +338 -0
  49. data/doc/file.README.html +214 -0
  50. data/doc/file_list.html +56 -0
  51. data/doc/frames.html +26 -0
  52. data/doc/index.html +214 -0
  53. data/doc/js/app.js +219 -0
  54. data/doc/js/full_list.js +178 -0
  55. data/doc/js/jquery.js +4 -0
  56. data/doc/method_list.html +533 -0
  57. data/doc/top-level-namespace.html +112 -0
  58. data/examples/custom_classes.rb +43 -0
  59. data/examples/dynamic_entries.rb +126 -0
  60. data/examples/example_queries.rb +27 -0
  61. data/examples/raise_errors.rb +22 -0
  62. data/examples/raw_mode.rb +15 -0
  63. data/examples/resource_mapping.rb +33 -0
  64. data/lib/contentful.rb +3 -0
  65. data/lib/contentful/array.rb +47 -0
  66. data/lib/contentful/asset.rb +34 -0
  67. data/lib/contentful/client.rb +193 -0
  68. data/lib/contentful/content_type.rb +16 -0
  69. data/lib/contentful/dynamic_entry.rb +54 -0
  70. data/lib/contentful/entry.rb +12 -0
  71. data/lib/contentful/error.rb +52 -0
  72. data/lib/contentful/field.rb +16 -0
  73. data/lib/contentful/file.rb +13 -0
  74. data/lib/contentful/link.rb +20 -0
  75. data/lib/contentful/locale.rb +12 -0
  76. data/lib/contentful/location.rb +12 -0
  77. data/lib/contentful/request.rb +37 -0
  78. data/lib/contentful/resource.rb +146 -0
  79. data/lib/contentful/resource/asset_fields.rb +50 -0
  80. data/lib/contentful/resource/fields.rb +39 -0
  81. data/lib/contentful/resource/system_properties.rb +48 -0
  82. data/lib/contentful/resource_builder.rb +197 -0
  83. data/lib/contentful/response.rb +64 -0
  84. data/lib/contentful/space.rb +14 -0
  85. data/lib/contentful/support.rb +18 -0
  86. data/lib/contentful/version.rb +3 -0
  87. data/spec/array_spec.rb +69 -0
  88. data/spec/asset_spec.rb +62 -0
  89. data/spec/auto_includes_spec.rb +12 -0
  90. data/spec/client_class_spec.rb +59 -0
  91. data/spec/client_configuration_spec.rb +197 -0
  92. data/spec/coercions_spec.rb +10 -0
  93. data/spec/content_type_spec.rb +44 -0
  94. data/spec/dynamic_entry_spec.rb +34 -0
  95. data/spec/entry_spec.rb +53 -0
  96. data/spec/error_class_spec.rb +60 -0
  97. data/spec/error_requests_spec.rb +32 -0
  98. data/spec/field_spec.rb +36 -0
  99. data/spec/file_spec.rb +28 -0
  100. data/spec/fixtures/json_responses/content_type.json +83 -0
  101. data/spec/fixtures/json_responses/not_found.json +13 -0
  102. data/spec/fixtures/json_responses/nyancat.json +48 -0
  103. data/spec/fixtures/json_responses/unparsable.json +13 -0
  104. data/spec/fixtures/vcr_cassettes/array.yml +288 -0
  105. data/spec/fixtures/vcr_cassettes/array_page_1.yml +106 -0
  106. data/spec/fixtures/vcr_cassettes/array_page_2.yml +73 -0
  107. data/spec/fixtures/vcr_cassettes/asset.yml +96 -0
  108. data/spec/fixtures/vcr_cassettes/bad_request.yml +76 -0
  109. data/spec/fixtures/vcr_cassettes/content_type.yml +147 -0
  110. data/spec/fixtures/vcr_cassettes/entries.yml +561 -0
  111. data/spec/fixtures/vcr_cassettes/entry.yml +112 -0
  112. data/spec/fixtures/vcr_cassettes/entry_cache.yml +288 -0
  113. data/spec/fixtures/vcr_cassettes/field.yml +147 -0
  114. data/spec/fixtures/vcr_cassettes/locale.yml +81 -0
  115. data/spec/fixtures/vcr_cassettes/location.yml +305 -0
  116. data/spec/fixtures/vcr_cassettes/not_found.yml +71 -0
  117. data/spec/fixtures/vcr_cassettes/nyancat.yml +112 -0
  118. data/spec/fixtures/vcr_cassettes/nyancat_include.yml +112 -0
  119. data/spec/fixtures/vcr_cassettes/reloaded_entry.yml +112 -0
  120. data/spec/fixtures/vcr_cassettes/space.yml +81 -0
  121. data/spec/fixtures/vcr_cassettes/unauthorized.yml +64 -0
  122. data/spec/link_spec.rb +40 -0
  123. data/spec/locale_spec.rb +20 -0
  124. data/spec/location_spec.rb +30 -0
  125. data/spec/request_spec.rb +48 -0
  126. data/spec/resource_spec.rb +52 -0
  127. data/spec/response_spec.rb +50 -0
  128. data/spec/space_spec.rb +36 -0
  129. data/spec/spec_helper.rb +6 -0
  130. data/spec/support/client.rb +6 -0
  131. data/spec/support/json_responses.rb +11 -0
  132. data/spec/support/vcr.rb +16 -0
  133. metadata +374 -0
data/.README.md.swp ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ pkg
2
+ Gemfile.lock
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color --format documentation
data/.travis.yml ADDED
@@ -0,0 +1,10 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.1
4
+ - 2.1.0
5
+ - 2.0.0
6
+ - 1.9.3
7
+ - jruby-19mode
8
+ notifications:
9
+ flowdock:
10
+ - secure: "jO51sETvF1Je7jLQibT5P2ty3KAC8Q9/jJKPUKLDHAaz927XhhkrMXVs6tjzVG1BmHc5A+Qhuni26XerFRsocR7CTrqKdmvmXLgWyMtpW5CvUbtUCeApRQE2K4k/fb+7mz3EBAE494AK5Fz8f3vk2WVu5ROj5shuuggiYhoOqHw="
data/ChangeLog.md ADDED
@@ -0,0 +1,3 @@
1
+ ### 0.1.0
2
+
3
+ * Initial release.
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014 Contentful GmbH - Jan Lelis
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,193 @@
1
+ # contentful.rb
2
+
3
+ Ruby client for the [Contentful](https://www.contentful.com) Content Delivery API.
4
+
5
+ [Contentful](https://www.contentful.com) is a content management platform for web applications, mobile apps and connected devices. It allows you to create, edit & manage content in the cloud and publish it anywhere via powerful API. Contentful offers tools for managing editorial teams and enabling cooperation between organizations.
6
+
7
+ ## Setup
8
+
9
+ Add to your Gemfile and bundle:
10
+
11
+ gem 'contentful'
12
+
13
+
14
+ ## Usage
15
+
16
+ client = Contentful::Client.new(
17
+ access_token: 'b4c0n73n7fu1',
18
+ space: 'cfexampleapi'
19
+ )
20
+
21
+ You can query for entries, assets, etc. very similar as described in the
22
+ [Delivery API Documentation](https://www.contentful.com/developers/documentation/content-delivery-api/). Please note, that all methods of the Ruby client library are snake_cased, instead of JavaScript's camelCase:
23
+
24
+ client.content_types
25
+ client.entry 'nyancat'
26
+
27
+ You can pass the usual filter options to the query:
28
+
29
+ client.entries('sys.id[ne]' => 'nyancat') # query for all entries except 'nyancat'
30
+ client.entries(include: 1) # include one level of linked resources
31
+
32
+
33
+ The results are returned as Contentful::Resource objects. Multiple results will be returned as Contentful::Array. The properties of a resource can be accessed through Ruby methods.
34
+
35
+ content_type = client.content_type 'cat'
36
+ content_type.description # "Meow."
37
+
38
+
39
+ Alternatively, the data can be accessed as Ruby `Hash` with symbolized keys:
40
+
41
+ content_type.properties # { name: '...', description: '...' }
42
+
43
+
44
+ System Properties behave the same and can be accessed via the `#sys` method.
45
+
46
+ content_type.id # => 'cat'
47
+ entry.type # => 'Entry'
48
+ asset.sys # { id: '...', type: '...' }
49
+
50
+
51
+ Entry Fields usually don't have direct method accessors, since they are based on individual content types. These fields can be accessed through the `#fields` method:
52
+
53
+ entry = client.entry 'nyancat'
54
+ entry.fields[:color] # rainbow
55
+
56
+ Please note, that no field type conversions will be done for entries by default.
57
+
58
+
59
+ ### Dynamic Entries
60
+
61
+ However, you can (and should) set `:dynamic_entries` to `:auto` in your client configuration. When using this option, the client will fetch all available content types and use them to create dynamic entries on the fly.
62
+
63
+ client = Contentful::Client.new(
64
+ access_token: 'b4c0n73n7fu1',
65
+ space: 'cfexampleapi',
66
+ dynamic_entries: :auto,
67
+ )
68
+ entry = client.entry 'nyancat' # => #<Contentful::DynamicEntry[cat]: ...>
69
+ entry.color # => 'rainbow'
70
+
71
+ Dynamic entries will have getter classes for the fields and do type conversions properly.
72
+
73
+ The `:auto` mode will fetch all content types on initialization. If you want to do it by hand later, you will need to set the option to `:manual` and call `client.update_dynamic_entry_cache!` to initialize all dynamic entries.
74
+
75
+
76
+ ### Arrays
77
+
78
+ Contentful::Array has an `#each` method that delegates to its items. It also includes Ruby's Enumerable module, providing methods like `#min` or `#first`. See the Ruby core documentation for further details.
79
+
80
+ Arrays also have a `#next_page` URL, which will rerun the request with a increased skip parameter, as described in [the documentation](https://www.contentful.com/developers/documentation/content-delivery-api/#search-limit).
81
+
82
+
83
+ ### Links
84
+
85
+ You can easily request a resource that is represented by a link by calling `#resolve`:
86
+
87
+ happycat = client.entry 'happycat'
88
+ happycat.fields[:image]
89
+ # => #<Contentful::Link: @sys={:type=>"Link", :linkType=>"Asset", :id=>"happycat"}>
90
+ happycat.fields[:image].resolve # => #<Contentful::Asset: @fields={ ...
91
+
92
+
93
+ ### Assets
94
+
95
+ There is a helpful method to add image resize options for an asset image:
96
+
97
+ client.asset('happycat').image_url
98
+ # => "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/
99
+ # 382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg"
100
+
101
+ client.asset('happycat').image_url width: 300, height: 200, format: 'jpg', quality: 100
102
+ # => "//images.contentful.com/cfexampleapi/3MZPnjZTIskAIIkuuosCss/
103
+ # 382a48dfa2cb16c47aa2c72f7b23bf09/happycatw.jpg?w=300&h=200&fm=jpg&q=100"
104
+
105
+
106
+ ### Resource Options
107
+
108
+ Resources, that have been requested directly (i.e. no child resources), can be fetched from the server again by calling `#reload`:
109
+
110
+ entries = client.entries
111
+ entries.reload # Fetches the array of entries again
112
+
113
+ ### Field Type "Object"
114
+
115
+ While for known field types, the field data is accessible using methods or the `#fields` hash with symbol keys, it behaves differently for nested data of the type "Object". The client will treat them as arbitrary hashes and will not parse the data inside, which also means, this data is indexed by Ruby strings, not symbols.
116
+
117
+
118
+ ## Client Configuration Options
119
+ ### :space
120
+
121
+ Required option. The name of the space you want to access.
122
+
123
+ ### :access_token
124
+
125
+ Required option. The space's secret token.
126
+
127
+ ### :secure
128
+
129
+ Whether to use https. Defaults to `true`.
130
+
131
+ ### :authentication_mechanism
132
+
133
+ How to authenticate with the API. Supports `:header` (default) or `:query_string`.
134
+
135
+ ### :raise_errors
136
+
137
+ If set to `true` (default), error responses will be raised. If set to `false`, the error objects will simply be returned.
138
+
139
+ ### :dynamic_entries
140
+
141
+ `:auto` or `:manual`. See resource description above for details on usage.
142
+
143
+ ### :raw_mode
144
+
145
+ Defaults to `false`. If enabled, the API responses will not be parsed to resource objects. Might be useful for debugging.
146
+
147
+ ### :resource_mapping
148
+
149
+ See next paragraph for explanation
150
+
151
+
152
+ ## Advanced Usage
153
+ ### Custom Resource Classes
154
+
155
+ You can define your own classes that will be returned instead of the predefined ones. Consider, you want to build a better Asset class. One way to do this is:
156
+
157
+ class MyBetterAsset < Contentful::Asset
158
+ def https_image_url
159
+ image_url.sub %r<\A//>, 'https://'
160
+ end
161
+ end
162
+
163
+ You can register your custom class on client initialization:
164
+
165
+ client = Contentful::Client.new(
166
+ space: 'cfexampleapi',
167
+ access_token: 'b4c0n73n7fu1',
168
+ resource_mapping: {
169
+ 'Asset' => MyBetterAsset,
170
+ }
171
+ )
172
+
173
+ More information on `:resource_mapping` can be found in examples/resource_mapping.rb and more on custom classes in examples/custom_classes.rb
174
+
175
+
176
+ ### Dynamic Entries
177
+
178
+ In `dynamic_entries: :auto` mode, all entries are returned as specialized entry classes. However, you can also create these specialized classes by yourself, based on a content type:
179
+
180
+ client = Contentful::Client.new(
181
+ space: 'cfexampleapi',
182
+ access_token: 'b4c0n73n7fu1',
183
+ dynamice_entries: :manual, # default
184
+ )
185
+ content_type = client.content_type 'cat'
186
+ MyCat = Contentful::DynamicEntry.create(content_type)
187
+ client.register_dynamic_entry 'cat', MyCat
188
+
189
+ More information on dynamic entries are available in examples/dynamic_entries.rb
190
+
191
+ ## License
192
+
193
+ Copyright (c) 2014 Contentful GmbH - Jan Lelis. See LICENSE.txt for further details.
data/Rakefile ADDED
@@ -0,0 +1,30 @@
1
+ # encoding: utf-8
2
+
3
+ require 'rubygems'
4
+
5
+ begin
6
+ require 'bundler'
7
+ rescue LoadError => e
8
+ warn e.message
9
+ warn "Run `gem install bundler` to install Bundler."
10
+ exit -1
11
+ end
12
+
13
+ begin
14
+ Bundler.setup(:development)
15
+ rescue Bundler::BundlerError => e
16
+ warn e.message
17
+ warn "Run `bundle install` to install missing gems."
18
+ exit e.status_code
19
+ end
20
+
21
+ require 'rake'
22
+
23
+ require 'rubygems/tasks'
24
+ Gem::Tasks.new
25
+
26
+ require 'rspec/core/rake_task'
27
+ RSpec::Core::RakeTask.new
28
+
29
+ task :test => :spec
30
+ task :default => :spec
@@ -0,0 +1,31 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.expand_path('../lib/contentful/version', __FILE__)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "contentful"
7
+ gem.version = Contentful::VERSION
8
+ gem.summary = 'contentful'
9
+ gem.description = 'Ruby client for the https://www.contentful.com Content Delivery API'
10
+ gem.license = "MIT"
11
+ gem.authors = ["Contentful GmbH (Jan Lelis)"]
12
+ gem.email = "rubygems@contentful.com"
13
+ gem.homepage = "https://github.com/contentful/contentful.rb"
14
+
15
+ gem.files = Dir['{**/}{.*,*}'].select { |path| File.file?(path) && !path.start_with?("pkg") }
16
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
+ gem.test_files = gem.files.grep(%r{^spec/})
18
+ gem.require_paths = ['lib']
19
+
20
+ gem.add_dependency 'http', '~> 0'
21
+ gem.add_dependency 'multi_json', '~> 1'
22
+
23
+ gem.add_development_dependency 'bundler', '~> 1.5'
24
+ gem.add_development_dependency 'rake', '~> 10'
25
+ gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
26
+
27
+ gem.add_development_dependency 'rspec', '~> 2'
28
+ gem.add_development_dependency 'rr'
29
+ gem.add_development_dependency 'vcr'
30
+ gem.add_development_dependency 'webmock', '~> 1', '>= 1.17.3'
31
+ end
data/do_request.sh ADDED
@@ -0,0 +1,5 @@
1
+ #!/bin/bash
2
+ curl -v -X PUT https://api.contentful.com/spaces/4pc8kedrdxbj/content_types/announcements \
3
+ -H 'Content-Type: application/vnd.contentful.management.v1+json' \
4
+ -H 'Authorization: Bearer bc02f3f03b57cbe01518f131e7a75d0cc767f5874425a367205b93563a93d78b' \
5
+ -d '{"name":"Announcements","description": "Announcements are delivered as push notifications directly to users devices", "displayField": "message", "fields":[ {"name": "Message", "id": "message", "type": "Text", "required": true}, {"name": "Description", "id": "description", "type": "Text"}, {"name": "Originator", "id": "originator", "type": "Symbol", "validations": [{"in": ["PGMC", "Clinical Lead for Acute Medicine", "Communications Team"]}]}]}'
@@ -0,0 +1,131 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Module: Contentful
8
+
9
+ &mdash; Documentation by YARD 0.8.7.3
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ hasFrames = window.top.frames.main ? true : false;
19
+ relpath = '';
20
+ framesUrl = "frames.html#!" + escape(window.location.href);
21
+ </script>
22
+
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
+
26
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
+
28
+
29
+ </head>
30
+ <body>
31
+ <div id="header">
32
+ <div id="menu">
33
+
34
+ <a href="_index.html">Index (C)</a> &raquo;
35
+
36
+
37
+ <span class="title">Contentful</span>
38
+
39
+
40
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
+ </div>
42
+
43
+ <div id="search">
44
+
45
+ <a class="full_list_link" id="class_list_link"
46
+ href="class_list.html">
47
+ Class List
48
+ </a>
49
+
50
+ <a class="full_list_link" id="method_list_link"
51
+ href="method_list.html">
52
+ Method List
53
+ </a>
54
+
55
+ <a class="full_list_link" id="file_list_link"
56
+ href="file_list.html">
57
+ File List
58
+ </a>
59
+
60
+ </div>
61
+ <div class="clear"></div>
62
+ </div>
63
+
64
+ <iframe id="search_frame"></iframe>
65
+
66
+ <div id="content"><h1>Module: Contentful
67
+
68
+
69
+
70
+ </h1>
71
+
72
+ <dl class="box">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+ <dt class="r1 last">Defined in:</dt>
82
+ <dd class="r1 last">lib/contentful/link.rb<span class="defines">,<br />
83
+ lib/contentful/file.rb,<br /> lib/contentful/array.rb,<br /> lib/contentful/entry.rb,<br /> lib/contentful/asset.rb,<br /> lib/contentful/error.rb,<br /> lib/contentful/space.rb,<br /> lib/contentful/field.rb,<br /> lib/contentful/locale.rb,<br /> lib/contentful/client.rb,<br /> lib/contentful/request.rb,<br /> lib/contentful/version.rb,<br /> lib/contentful/support.rb,<br /> lib/contentful/response.rb,<br /> lib/contentful/resource.rb,<br /> lib/contentful/content_type.rb,<br /> lib/contentful/dynamic_entry.rb,<br /> lib/contentful/resource/fields.rb,<br /> lib/contentful/resource_builder.rb,<br /> lib/contentful/resource/asset_fields.rb,<br /> lib/contentful/resource/system_properties.rb</span>
84
+ </dd>
85
+
86
+ </dl>
87
+ <div class="clear"></div>
88
+
89
+ <h2>Defined Under Namespace</h2>
90
+ <p class="children">
91
+
92
+
93
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Contentful/Resource.html" title="Contentful::Resource (module)">Resource</a></span>, <span class='object_link'><a href="Contentful/Support.html" title="Contentful::Support (module)">Support</a></span>
94
+
95
+
96
+
97
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Contentful/AccessDenied.html" title="Contentful::AccessDenied (class)">AccessDenied</a></span>, <span class='object_link'><a href="Contentful/Array.html" title="Contentful::Array (class)">Array</a></span>, <span class='object_link'><a href="Contentful/Asset.html" title="Contentful::Asset (class)">Asset</a></span>, <span class='object_link'><a href="Contentful/BadRequest.html" title="Contentful::BadRequest (class)">BadRequest</a></span>, <span class='object_link'><a href="Contentful/Client.html" title="Contentful::Client (class)">Client</a></span>, <span class='object_link'><a href="Contentful/ContentType.html" title="Contentful::ContentType (class)">ContentType</a></span>, <span class='object_link'><a href="Contentful/DynamicEntry.html" title="Contentful::DynamicEntry (class)">DynamicEntry</a></span>, <span class='object_link'><a href="Contentful/Entry.html" title="Contentful::Entry (class)">Entry</a></span>, <span class='object_link'><a href="Contentful/Error.html" title="Contentful::Error (class)">Error</a></span>, <span class='object_link'><a href="Contentful/Field.html" title="Contentful::Field (class)">Field</a></span>, <span class='object_link'><a href="Contentful/File.html" title="Contentful::File (class)">File</a></span>, <span class='object_link'><a href="Contentful/Link.html" title="Contentful::Link (class)">Link</a></span>, <span class='object_link'><a href="Contentful/Locale.html" title="Contentful::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Contentful/NotFound.html" title="Contentful::NotFound (class)">NotFound</a></span>, <span class='object_link'><a href="Contentful/Request.html" title="Contentful::Request (class)">Request</a></span>, <span class='object_link'><a href="Contentful/ResourceBuilder.html" title="Contentful::ResourceBuilder (class)">ResourceBuilder</a></span>, <span class='object_link'><a href="Contentful/Response.html" title="Contentful::Response (class)">Response</a></span>, <span class='object_link'><a href="Contentful/ServerError.html" title="Contentful::ServerError (class)">ServerError</a></span>, <span class='object_link'><a href="Contentful/Space.html" title="Contentful::Space (class)">Space</a></span>, <span class='object_link'><a href="Contentful/Unauthorized.html" title="Contentful::Unauthorized (class)">Unauthorized</a></span>, <span class='object_link'><a href="Contentful/UnparsableJson.html" title="Contentful::UnparsableJson (class)">UnparsableJson</a></span>, <span class='object_link'><a href="Contentful/UnparsableResource.html" title="Contentful::UnparsableResource (class)">UnparsableResource</a></span>
98
+
99
+
100
+ </p>
101
+
102
+ <h2>Constant Summary</h2>
103
+
104
+ <dl class="constants">
105
+
106
+ <dt id="VERSION-constant" class="">VERSION =
107
+
108
+ </dt>
109
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
110
+
111
+ </dl>
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ </div>
123
+
124
+ <div id="footer">
125
+ Generated on Tue Mar 11 09:25:52 2014 by
126
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
127
+ 0.8.7.3 (ruby-1.9.3).
128
+ </div>
129
+
130
+ </body>
131
+ </html>