Skip to content

Commit ce0105f

Browse files
committed
Update ruby SDK from OpenAPI spec
1 parent 2208e95 commit ce0105f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ ruby -Ilib script.rb
5151

5252
## API Key
5353

54-
To use the WhatPulse API, you'll need an API key. You can generate one by visiting: http://whatpulse.org/go/settings-api-keys
54+
To use the WhatPulse API, you'll need an API key. You can generate one by visiting: https://whatpulse.org/go/settings-api-keys
5555

5656
## Getting Started
5757

docs/ComputerResource.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
| **totals** | [**ComputerResourceTotals**](ComputerResourceTotals.md) | | |
1313
| **pulses** | **Integer** | The total number of pulses recorded for this computer. | |
1414
| **last_pulse_date** | **String** | The date and time of the last pulse recorded for this computer. | |
15-
| **hardware** | **Array<Object>** | Hardware specifications and peripherals, if available. | |
15+
| **hardware** | **Hash<String, Object>** | Hardware specifications and peripherals, if available. | |
1616

1717
## Example
1818

lib/whatpulse-sdk/models/computer_resource.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def self.openapi_types
9999
:'totals' => :'ComputerResourceTotals',
100100
:'pulses' => :'Integer',
101101
:'last_pulse_date' => :'String',
102-
:'hardware' => :'Array<Object>'
102+
:'hardware' => :'Hash<String, Object>'
103103
}
104104
end
105105

@@ -176,7 +176,7 @@ def initialize(attributes = {})
176176
end
177177

178178
if attributes.key?(:'hardware')
179-
if (value = attributes[:'hardware']).is_a?(Array)
179+
if (value = attributes[:'hardware']).is_a?(Hash)
180180
self.hardware = value
181181
end
182182
else

0 commit comments

Comments
 (0)