Sha256: 29c680a9eb44eeccaa9eb8d7afcc42301ec4a9c2d6a4f56ce3a89b1b6056e553
Contents?: true
Size: 637 Bytes
Versions: 1
Compression:
Stored size: 637 Bytes
Contents
require_relative 'base' require 'addressable/template' module Taric module Operation module Champion include Taric::Operation::Base CHAMPION_VERSION = 'v1.2'.freeze CHAMPION_BASE_URL = "#{BASE_URL_FN.(CHAMPION_VERSION)}/champion" CHAMPIONS = Addressable::Template.new("#{CHAMPION_BASE_URL}{?api_key,freeToPlay}") CHAMPION_BY_ID = Addressable::Template.new("#{CHAMPION_BASE_URL}/{id}{?api_key}") def champions(free_to_play: nil) response_for CHAMPIONS, freeToPlay: free_to_play end def champion(id:) response_for CHAMPION_BY_ID, id: id end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
taric-0.1.1 | lib/taric/operation/champion.rb |