Skip to content

Commit 0c0df00

Browse files
committed
Fix quantity_limit_free
1 parent 7311385 commit 0c0df00

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/travis/api/v3/models/v2_addon_usage.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Travis::API::V3
22
class Models::V2AddonUsage
33
attr_reader :id, :addon_id, :addon_quantity, :addon_usage, :remaining, :purchase_date, :valid_to, :active, :status,
4-
:quantity_free_limit, :quantity_limit_type, :quantity_limit_charge, :total_usage
4+
:quantity_limit_free, :quantity_limit_type, :quantity_limit_charge, :total_usage
55

66
def initialize(attrs)
77
@id = attrs.fetch('id')
@@ -13,7 +13,7 @@ def initialize(attrs)
1313
@valid_to = attrs.fetch('valid_to')
1414
@active = attrs.fetch('active')
1515
@status = attrs.fetch('status')
16-
@quantity_free_limit = attrs.fetch('quantity_free_limit', 0)
16+
@quantity_limit_free = attrs.fetch('quantity_limit_free', 0)
1717
@quantity_limit_type = attrs.fetch('quantity_limit_type', nil)
1818
@quantity_limit_charge = attrs.fetch('quantity_limit_charge', nil)
1919
@total_usage = attrs.fetch('total_usage', nil)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module Travis::API::V3
22
class Renderer::V2AddonUsage < ModelRenderer
33
representation(:standard, :id, :addon_id, :addon_quantity, :addon_usage, :remaining, :purchase_date, :valid_to,
4-
:active, :status, :total_usage, :quantity_free_limit, :quantity_limit_type, :quantity_limit_charge)
4+
:active, :status, :total_usage, :quantity_limit_free, :quantity_limit_type, :quantity_limit_charge)
55
representation(:minimal, :id, :addon_id, :addon_quantity, :addon_usage, :remaining, :purchase_date, :valid_to,
6-
:active, :status, :total_usage, :quantity_free_limit, :quantity_limit_type, :quantity_limit_charge)
6+
:active, :status, :total_usage, :quantity_limit_free, :quantity_limit_type, :quantity_limit_charge)
77
end
88
end

0 commit comments

Comments
 (0)