class RDStation::Account

Public Class Methods

new(authorization:) click to toggle source
# File lib/rdstation/account.rb, line 8
def initialize(authorization:)
  @authorization = authorization
end

Public Instance Methods

info() click to toggle source
# File lib/rdstation/account.rb, line 12
def info
  retryable_request(@authorization) do |authorization|
    response = self.class.get(base_url, headers: authorization.headers)
    ApiResponse.build(response)
  end
end

Private Instance Methods

base_url(_path = '') click to toggle source
# File lib/rdstation/account.rb, line 21
def base_url(_path = '')
  "#{RDStation.host}/marketing/account_info"
end