Skip to content

Commit 22a349a

Browse files
committed
v1.2.2
1 parent f3747fe commit 22a349a

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.2.2] - 2020-09-18
11+
12+
### Added
13+
14+
- `photos` field to `projects`
15+
1016
## [1.2.1] - 2020-09-18
1117

1218
### Fixed
@@ -17,7 +23,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1723

1824
### Added
1925

20-
- `photos` field to `projects`
2126
- `average_price_per_tonne_cents_usd` field to `projects`
2227
- `remaining_mass_g` field to `projects`
2328
- `standard` field to `projects`

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
patch_ruby (1.2.0)
4+
patch_ruby (1.2.2)
55
json (~> 2.1, >= 2.1.0)
66
typhoeus (~> 1.0, >= 1.0.1)
77

lib/patch_ruby/models/photo.rb

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414

1515
module Patch
1616
class Photo
17-
attr_accessor :file
17+
attr_accessor :url
1818

1919
# Attribute mapping from ruby-style variable name to JSON key.
2020
def self.attribute_map
2121
{
22-
:'file' => :'file'
22+
:'url' => :'url'
2323
}
2424
end
2525

2626
# Attribute type mapping.
2727
def self.openapi_types
2828
{
29-
:'file' => :'String'
29+
:'url' => :'String'
3030
}
3131
end
3232

@@ -56,8 +56,8 @@ def initialize(attributes = {})
5656
h[k.to_sym] = v
5757
}
5858

59-
if attributes.key?(:'file')
60-
self.file = attributes[:'file']
59+
if attributes.key?(:'url')
60+
self.url = attributes[:'url']
6161
end
6262
end
6363

@@ -79,7 +79,7 @@ def valid?
7979
def ==(o)
8080
return true if self.equal?(o)
8181
self.class == o.class &&
82-
file == o.file
82+
url == o.url
8383
end
8484

8585
# @see the `==` method
@@ -91,7 +91,7 @@ def eql?(o)
9191
# Calculates hash code according to all attributes.
9292
# @return [Integer] Hash code
9393
def hash
94-
[file].hash
94+
[url].hash
9595
end
9696

9797
# Builds the object from hash

lib/patch_ruby/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module Patch
14-
VERSION = '1.2.1'
14+
VERSION = '1.2.2'
1515
end

0 commit comments

Comments
 (0)