class RiotLolApi::Model::Image
Public Instance Methods
full_url()
click to toggle source
build path of image
# File lib/riot_lol_api/models/images.rb, line 7 def full_url "#{RiotLolApi::Client.realm['cdn']}/#{RiotLolApi::Client.realm['v']}/img/#{group}/#{full}" end
sprite_url(size = 'normal')
click to toggle source
# File lib/riot_lol_api/models/images.rb, line 11 def sprite_url(size = 'normal') filename = size == 'tiny' || size == 'small' ? "#{size}_#{sprite}" : sprite "#{RiotLolApi::Client.realm['cdn']}/#{RiotLolApi::Client.realm['v']}/img/sprite/#{filename}" end