Skip to content

Commit

Permalink
Generated version 0.23.0
Browse files Browse the repository at this point in the history
This commit was automatically created by a GitHub Action to generate version 0.23.0 of this library.
  • Loading branch information
devexperience committed Nov 21, 2023
1 parent e38d6e2 commit dce6339
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/SpendingPlansResponseBody.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **iteration_items** | [**Array<SpendingPlanResponse>**](SpendingPlanResponse.md) | | [optional] |
| **spending_plans** | [**Array<SpendingPlanResponse>**](SpendingPlanResponse.md) | | [optional] |
| **pagination** | [**PaginationResponse**](PaginationResponse.md) | | [optional] |

## Example
Expand All @@ -13,7 +13,7 @@
require 'mx-platform-ruby'

instance = MxPlatformRuby::SpendingPlansResponseBody.new(
iteration_items: null,
spending_plans: null,
pagination: null
)
```
Expand Down
16 changes: 8 additions & 8 deletions lib/mx-platform-ruby/models/spending_plans_response_body.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@

module MxPlatformRuby
class SpendingPlansResponseBody
attr_accessor :iteration_items
attr_accessor :spending_plans

attr_accessor :pagination

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'iteration_items' => :'iteration_items',
:'spending_plans' => :'spending_plans',
:'pagination' => :'pagination'
}
end
Expand All @@ -35,7 +35,7 @@ def self.acceptable_attributes
# Attribute type mapping.
def self.openapi_types
{
:'iteration_items' => :'Array<SpendingPlanResponse>',
:'spending_plans' => :'Array<SpendingPlanResponse>',
:'pagination' => :'PaginationResponse'
}
end
Expand All @@ -61,9 +61,9 @@ def initialize(attributes = {})
h[k.to_sym] = v
}

if attributes.key?(:'iteration_items')
if (value = attributes[:'iteration_items']).is_a?(Array)
self.iteration_items = value
if attributes.key?(:'spending_plans')
if (value = attributes[:'spending_plans']).is_a?(Array)
self.spending_plans = value
end
end

Expand Down Expand Up @@ -92,7 +92,7 @@ def valid?
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
iteration_items == o.iteration_items &&
spending_plans == o.spending_plans &&
pagination == o.pagination
end

Expand All @@ -105,7 +105,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[iteration_items, pagination].hash
[spending_plans, pagination].hash
end

# Builds the object from hash
Expand Down
2 changes: 1 addition & 1 deletion lib/mx-platform-ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
=end

module MxPlatformRuby
VERSION = '0.22.1'
VERSION = '0.23.0'
end
2 changes: 1 addition & 1 deletion openapi/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
gemLicense: MIT
gemName: mx-platform-ruby
gemRequiredRubyVersion: ">= 2.6"
gemVersion: 0.22.1
gemVersion: 0.23.0
library: faraday
moduleName: MxPlatformRuby
2 changes: 1 addition & 1 deletion spec/models/spending_plans_response_body_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
expect(instance).to be_instance_of(MxPlatformRuby::SpendingPlansResponseBody)
end
end
describe 'test attribute "iteration_items"' do
describe 'test attribute "spending_plans"' do
it 'should work' do
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
end
Expand Down

0 comments on commit dce6339

Please sign in to comment.