Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reference attribute to Availability #153

Merged
merged 2 commits into from
Sep 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.18.0]

- Add `reference` attribute to `Availability`

## [0.17.0]

- Add `reference` attribute to `Machine` and `Specialist`
Expand Down
2 changes: 1 addition & 1 deletion lib/zaikio/hub/availability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Availability < Base

attributes :machine_id, :mode, :starts_at, :ends_at, :date, :weekday, :reason, :capacity,
:description, :machine_id, :specialist_id, :created_at, :updated_at, :starts_at_hm,
:ends_at_hm
:ends_at_hm, :reference
end
end
end
2 changes: 1 addition & 1 deletion lib/zaikio/hub/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Zaikio
module Hub
VERSION = "0.17.0".freeze
VERSION = "0.18.0".freeze
end
end
6 changes: 4 additions & 2 deletions test/zaikio/hub_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ def default_headers(token)
starts_at: 34_200,
ends_at: 63_000,
weekday: "monday",
capacity: 1
capacity: 1,
reference: "122334"
} }.to_json)
.to_return(status: 201, body: {
"id" => "e0815217-be2f-436e-915a-67bec7faf010"
Expand All @@ -470,7 +471,8 @@ def default_headers(token)
starts_at: 34_200,
ends_at: 63_000,
weekday: "monday",
capacity: 1
capacity: 1,
reference: "122334"
)

assert_equal "e0815217-be2f-436e-915a-67bec7faf010", availability.id
Expand Down