mailosaur 7.6.0 → 7.7.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7fada04554f5062be36d26e90696358362e477f02a4342e3e41c4296a37cd05
4
- data.tar.gz: b9d768ae07fd46bc9e0456b88963c473434f92772d3aed6d4d805f01d1b956fe
3
+ metadata.gz: f91c18a443ec50a2034fab26e92fef85673a3aa5c4afde59f95763ca6c84b26f
4
+ data.tar.gz: 8a0ecf04c844630ac316548778135e6f0ba36ae0302b05bfd7c1b81c16bc05cf
5
5
  SHA512:
6
- metadata.gz: f9e635870cc5e3102dcdeb1e247841ea2341cd8593cfe1f3fa0f084741dd73599c7c856f2f8756601389c83ba53eadbfe0efee60c43c90ae60fe6be97c521631
7
- data.tar.gz: d71f6b94a70a7532e4727a6047a2d8f93b630b637d73f0a47664b3544edbbb9f736e9b37d8122ae41c156e510b87099c4da61cca3e8e9eb55e849a124a94bfb2
6
+ metadata.gz: 5bfab6fd07260d62159be23a80d8196fe73c2f7fba2b756ccf1e7d9b9b26ec7d50dfd7fd01b065830e3fc4c0e62ef656343b6478dcc419dbcea1c03c769d8cde
7
+ data.tar.gz: 837c2559149390868a1928ec653df6083b86b8830b8280687ad5dd8e2661e275943ed6bf0a7b8aaeccfa6665817b945e0767124236f94611980fdf2ea8281c9e
@@ -0,0 +1,12 @@
1
+ module Mailosaur
2
+ module Models
3
+ class Code < BaseModel
4
+ def initialize(data = {})
5
+ @value = data['value']
6
+ end
7
+
8
+ # @return [String]
9
+ attr_accessor :value
10
+ end
11
+ end
12
+ end
@@ -4,6 +4,8 @@ module Mailosaur
4
4
  def initialize(data = {})
5
5
  @links = []
6
6
  (data['links'] || []).each do |i| @links << Mailosaur::Models::Link.new(i) end
7
+ @codes = []
8
+ (data['codes'] || []).each do |i| @codes << Mailosaur::Models::Code.new(i) end
7
9
  @images = []
8
10
  (data['images'] || []).each do |i| @images << Mailosaur::Models::Image.new(i) end
9
11
  @body = data['body']
@@ -12,6 +14,9 @@ module Mailosaur
12
14
  # @return [Array<Link>]
13
15
  attr_accessor :links
14
16
 
17
+ # @return [Array<Code>]
18
+ attr_accessor :codes
19
+
15
20
  # @return [Array<Image>]
16
21
  attr_accessor :images
17
22
 
@@ -1,3 +1,3 @@
1
1
  module Mailosaur
2
- VERSION = '7.6.0'.freeze
2
+ VERSION = '7.7.0'.freeze
3
3
  end
data/lib/mailosaur.rb CHANGED
@@ -34,6 +34,7 @@ module Mailosaur
34
34
  autoload :MessageContent, 'Mailosaur/models/message_content.rb'
35
35
  autoload :Server, 'Mailosaur/models/server.rb'
36
36
  autoload :Link, 'Mailosaur/models/link.rb'
37
+ autoload :Code, 'Mailosaur/models/code.rb'
37
38
  autoload :ServerListResult, 'Mailosaur/models/server_list_result.rb'
38
39
  autoload :SpamFilterResults, 'Mailosaur/models/spam_filter_results.rb'
39
40
  autoload :ServerCreateOptions, 'Mailosaur/models/server_create_options.rb'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailosaur
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.0
4
+ version: 7.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mailosaur
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-03 00:00:00.000000000 Z
11
+ date: 2022-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -153,6 +153,7 @@ files:
153
153
  - lib/Mailosaur/messages.rb
154
154
  - lib/Mailosaur/models/attachment.rb
155
155
  - lib/Mailosaur/models/base_model.rb
156
+ - lib/Mailosaur/models/code.rb
156
157
  - lib/Mailosaur/models/image.rb
157
158
  - lib/Mailosaur/models/link.rb
158
159
  - lib/Mailosaur/models/message.rb