plate_api 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: b0c558f4ea358b0ddbca4fe9b389e67c1b981b2efaf2fa209e051d56200becb4
4
- data.tar.gz: 9608c63f10f9e5d8d62b8a24d83665c4d80f6b40a97eb9aba466d11c80986505
3
+ metadata.gz: 522a7eca99fa4cbfe69b6c62e3b3dcc1af33a89344eb807b5623d6c8c7095d27
4
+ data.tar.gz: 3790ba562e95a4519ec147c246f4a7b7b2bc6a246aa8aff221dee434b3be1326
5
5
  SHA512:
6
- metadata.gz: a2f9481b9da9bc6f958761fdf81158e4ef4d19f89240a499bc754ebd7756e34707c6c8bea059a6c636e9ccb7d554b8eb15e14725bb95870b4bd8b2d1fb5a041b
7
- data.tar.gz: af2b1fd5d3c4fd19fbdfee8574a41a86eb15ba97347c46f230135c5f82bb6edd1f4fa1dbf8d68671f85af46370091feffa5bf7e492882a3ae7c746d4faf43683
6
+ metadata.gz: 3eab81c7024b5d115aaa8c5cbb48287fb90c6af13fa04f0b2619c22027e2c1ccd24ef1d66eaba19b76d4240abfd57c71b05a87ef7b15889043757768f5ce61d0
7
+ data.tar.gz: 318db8f1736f4a9896665b24a16db630e0b31d9f2f4bce96fd4384d780d5fd328608ec1fd0851dd491ee5f1a7fc768b17f1d303e69228da817e859a3a82743e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- plate_api (1.1.1)
4
+ plate_api (1.1.2)
5
5
  faraday (~> 0.15.4)
6
6
  faraday_middleware (~> 0.13.1)
7
7
  mimemagic (~> 0.3.3)
@@ -2,6 +2,7 @@ module PlateApi::PlateObject
2
2
  class Attachment < Base
3
3
 
4
4
  has_one :site, "PlateApi::PlateObject::Site"
5
+ has_one :attachment_folder, "PlateApi::PlateObject::AttachmentFolder"
5
6
 
6
7
  def download
7
8
  @object_handler.api_connector.get("attachments/#{@id}/download", {}, :raw)
@@ -0,0 +1,15 @@
1
+ module PlateApi::PlateObject
2
+ class AttachmentFolder < Base
3
+
4
+ has_one :site, "PlateApi::PlateObject::Site"
5
+ has_many :attachments, :attachment, "PlateApi::PlateObject::Attachment"
6
+
7
+ def self.api_name
8
+ "attachment_folders"
9
+ end
10
+
11
+ def self.parent_class
12
+ Site
13
+ end
14
+ end
15
+ end
@@ -9,6 +9,7 @@ module PlateApi::PlateObject
9
9
  has_many :rows, :row, "PlateApi::PlateObject::Row"
10
10
  has_many :columns, :column, "PlateApi::PlateObject::Column"
11
11
  has_many :elements, :element, "PlateApi::PlateObject::Element"
12
+ has_many :attachment_folders, :attachment_folder, "PlateApi::PlateObject::AttachmentFolder"
12
13
  has_many :attachments, :attachment, "PlateApi::PlateObject::Attachment"
13
14
 
14
15
  def self.api_name
@@ -1,3 +1,3 @@
1
1
  module PlateApi
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plate_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kortleven
@@ -190,6 +190,7 @@ files:
190
190
  - lib/plate_api/get_request.rb
191
191
  - lib/plate_api/object_handler.rb
192
192
  - lib/plate_api/plate_object/attachment.rb
193
+ - lib/plate_api/plate_object/attachment_folder.rb
193
194
  - lib/plate_api/plate_object/base.rb
194
195
  - lib/plate_api/plate_object/column.rb
195
196
  - lib/plate_api/plate_object/company.rb