amazon-ads-ruby/AGENTS.md at main · lineofflight/amazon-ads-ruby · GitHub
Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 1.53 KB

AGENTS.md

File metadata and controls

27 lines (23 loc) · 1.53 KB

Amazon Ads Ruby SDK

Commands

  • Test: bundle exec rake test
  • Lint: bundle exec rake rubocop
  • Type check: bundle exec rake steep
  • All checks: bundle exec rake

Style

  • Inline RBS; attribute types go trailing (attr_reader :name #: String), method types leading (#: () -> String)
  • git: 50/72
  • No emojis, em dashes

Design

  • All files in lib/amazon_ads/apis/ and lib/amazon_ads/errors.rb are auto-generated; never hand-edit them
  • Stateless LWA: each call to LWA#request hits the token endpoint; the caller owns token caching
  • API classes take access_token directly; no in-process token management
  • 4xx/5xx responses raise AmazonAds::Error (status checked after perform, never via an http feature, so bodies survive); transport errors pass through raw
  • VCR cassettes replay only on CI; re-recording needs real credentials in test/.env and scrubs advertiser identifiers via the before_record hook

References