Sha256: c0076b76cc15d227c60e5e65ad30bf8442ba1f2e22fbe7d70ef45fea96278946

Contents?: true

Size: 225 Bytes

Versions: 5

Compression:

Stored size: 225 Bytes

Contents

# frozen_string_literal: true

module MyTankInfo
  class TokensResource < Resource
    def generate(**attributes)
      response = post_request("api/token", body: attributes)
      response.body.delete('"')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
my_tank_info-1.1.1 lib/my_tank_info/resources/tokens.rb
my_tank_info-1.1.0 lib/my_tank_info/resources/tokens.rb
my_tank_info-1.0.2 lib/my_tank_info/resources/tokens.rb
my_tank_info-1.0.1 lib/my_tank_info/resources/tokens.rb
my_tank_info-1.0.0 lib/my_tank_info/resources/tokens.rb