Skip to content

Commit 71c02ca

Browse files
committed
Fix: Ruby linting errors in Luma code snippets
1 parent c42ae8e commit 71c02ca

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

official/docs/ruby/current/luma/buy.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# frozen_string_literal: true
2+
13
require 'easypost'
24

3-
client = EasyPost::Client.new(api_key: "EASYPOST_API_KEY")
5+
client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY')
46

57
retrieved_shipment = client.shipment.retrieve('shp_...')
68

official/docs/ruby/current/luma/one-call-buy.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# frozen_string_literal: true
2+
13
require 'easypost'
24

3-
client = EasyPost::Client.new(api_key: "EASYPOST_API_KEY")
5+
client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY')
46

57
shipment = client.shipment.create_and_buy_luma(
68
to_address: {
@@ -11,7 +13,7 @@
1113
zip: '75070',
1214
country: 'US',
1315
phone: '8573875756',
14-
email: 'dr_steve_brule@gmail.com',
16+
email: 'dr_steve_brule@gmail.com'
1517
},
1618
from_address: {
1719
name: 'EasyPost',
@@ -22,20 +24,20 @@
2224
zip: '94104',
2325
country: 'US',
2426
phone: '4153334445',
25-
email: 'support@easypost.com',
27+
email: 'support@easypost.com'
2628
},
2729
parcel: {
2830
length: 20.2,
2931
width: 10.9,
3032
height: 5,
31-
weight: 65.9,
33+
weight: 65.9
3234
},
3335
carrier_accounts: ['ca_...'],
3436
persist_label: true,
3537
ruleset_name: 'required_deliver_by_date',
3638
planned_ship_date: '2025-07-16',
3739
deliver_by_date: '2025-07-18',
38-
insurance: '50.00',
40+
insurance: '50.00'
3941
)
4042

4143
puts shipment

official/docs/ruby/current/luma/promise.rb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
# frozen_string_literal: true
2+
13
require 'easypost'
24

3-
client = EasyPost::Client.new(api_key: "EASYPOST_API_KEY")
5+
client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY')
46

57
shipment = client.luma.get_promise(
68
to_address: {
@@ -11,7 +13,7 @@
1113
zip: '75070',
1214
country: 'US',
1315
phone: '8573875756',
14-
email: 'dr_steve_brule@gmail.com',
16+
email: 'dr_steve_brule@gmail.com'
1517
},
1618
from_address: {
1719
name: 'EasyPost',
@@ -22,17 +24,17 @@
2224
zip: '94104',
2325
country: 'US',
2426
phone: '4153334445',
25-
email: 'support@easypost.com',
27+
email: 'support@easypost.com'
2628
},
2729
parcel: {
2830
length: 20.2,
2931
width: 10.9,
3032
height: 5,
31-
weight: 65.9,
33+
weight: 65.9
3234
},
3335
ruleset_name: 'required_deliver_by_date',
3436
planned_ship_date: '2025-07-16',
35-
deliver_by_date: '2025-07-18',
37+
deliver_by_date: '2025-07-18'
3638
)
3739

3840
puts shipment

0 commit comments

Comments
 (0)