Skip to content

Commit

Permalink
Add deprecation warning for HCloud::ServerType#deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Jan 10, 2024
1 parent d93b074 commit 69e17d3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/hcloud/resources/server_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ class ServerType < Resource
attribute :deprecated, :boolean
attribute :deprecation, :deprecation

def deprecated
warn "[DEPRECATION] Field \"deprecated\" on server types is deprecated."

super
end

alias deprecated? deprecated
end
end

0 comments on commit 69e17d3

Please sign in to comment.