Skip to content

Commit

Permalink
Update Ruby constructors and requires
Browse files Browse the repository at this point in the history
  • Loading branch information
DebbieAtSeam committed Nov 15, 2024
1 parent 94987da commit 892be65
Show file tree
Hide file tree
Showing 24 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion docs/api-clients/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ checkAuth();
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

workspace = seam.workspaces.get()

Expand Down
2 changes: 1 addition & 1 deletion docs/api-clients/locks/get.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ console.log(device)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")
device_id = "123e4567-e89b-12d3-a456-426614174000"

device = seam.locks.get(device_id)
Expand Down
2 changes: 1 addition & 1 deletion docs/core-concepts/authentication/api-keys.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ checkAuth();
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

workspace = seam.workspaces.get()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ console.log(await seam.devices.list())

{% tab title="Ruby" %}
```ruby
client = Seam::Client.new(
client = Seam.new(
# Specify PAT.
api_key: pat,
# Specify workspace ID.
Expand Down
4 changes: 2 additions & 2 deletions docs/core-concepts/devices/managed-and-unmanaged-devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ print(unmanaged_device)
```ruby
require "seamapi"

seam = Seam::Client.new()
seam = Seam.new()
device_id = "aa3958c3-4236-4f71-bd77-3b60f85b3456"

seam.devices.update(device_id: device_id, is_managed: false)
Expand Down Expand Up @@ -290,7 +290,7 @@ print(device)
```ruby
require "seamapi"

seam = Seam::Client.new()
seam = Seam.new()
device_id = "aa3958c3-4236-4f71-bd77-3b60f85b3456"
seam.unmanaged_devices.update(device_id: device_id, is_managed: true)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ https://connect.getseam.com/connect_webviews/view?connect_webview_id=12345678-12
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(
accepted_providers: ["four_suites"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ https://connect.getseam.com/connect_webviews/view?connect_webview_id=12345678-12
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(
accepted_providers: ["akiles"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-2n-intercoms.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["my_2n"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-august-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ https://connect.getseam.com/connect_webviews/view?connect_webview_id=12345678-12
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(
accepted_providers: ["august"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["controlbyweb"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ console.log(connectWebview.url)

{% tab title="Ruby" %}
```ruby
require 'seamapi'
require 'seam'

seam = Seam::Client.new(api_key: 'MY_API_KEY')
seam = Seam.new(api_key: 'MY_API_KEY')

webview = seam.connect_webviews.create(accepted_providers: %w[dormakaba_oracode])

Expand Down
4 changes: 2 additions & 2 deletions docs/device-guides/get-started-with-igloo-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,9 @@ console.log(connectWebview.url)

{% tab title="Ruby" %}
```ruby
require 'seamapi'
require 'seam'

seam = Seam::Client.new(api_key: 'MY_API_KEY')
seam = Seam.new(api_key: 'MY_API_KEY')

webview = seam.connect_webviews.create(accepted_providers: %w[igloohome])

Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-kwikset-wifi-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["kwikset"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-minut-sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["minut"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-noiseaware-sensors.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["noiseaware"]
Expand Down
4 changes: 2 additions & 2 deletions docs/device-guides/get-started-with-salto-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ console.log(connectWebview.url)

{% tab title="Ruby" %}
```ruby
require 'seamapi'
require 'seam'

seam = Seam::Client.new(api_key: 'MY_API_KEY')
seam = Seam.new(api_key: 'MY_API_KEY')

webview = seam.connect_webviews.create(accepted_providers: %w[salto])

Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-schlage-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["schlage"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-smartlocks-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
provider_category: "stable"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ console.log(webview)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["smartthings"]
Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-ttlock-devices.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ https://connect.getseam.com/connect_webviews/view?connect_webview_id=12345678-12
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

connect_webview = seam.connect_webviews.create(
accepted_providers: ["ttlock"]
Expand Down
4 changes: 2 additions & 2 deletions docs/device-guides/get-started-with-wyze-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@ console.log(connectWebview.url);

{% tab title="Ruby" %}
```ruby
require 'seamapi'
require 'seam'

seam = Seam::Client.new(api_key: 'MY_API_KEY')
seam = Seam.new(api_key: 'MY_API_KEY')

webview = seam.connect_webviews.create(accepted_providers: %w[wyze])

Expand Down
2 changes: 1 addition & 1 deletion docs/device-guides/get-started-with-yale-locks.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ console.log(connectWebview.url)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

webview = seam.connect_webviews.create(
accepted_providers: ["yale"]
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ if (frontDoor.can_remotely_unlock) {
```ruby
require "seamapi"

seam = Seam::Client.new() # Seam automatically uses your exported SEAM_API_KEY.
seam = Seam.new() # Seam automatically uses your exported SEAM_API_KEY.

# Retrieve all devices, filtered by manufacturer,
# which is one of several filters that list() supports.
Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ print(workspace)
```ruby
require "seamapi"

seam = Seam::Client.new(api_key: "MY_API_KEY")
seam = Seam.new(api_key: "MY_API_KEY")

workspace = seam.workspaces.get

Expand Down

0 comments on commit 892be65

Please sign in to comment.