module GooglePlaySearch::Utils

Public Instance Methods

add_http_prefix(url) click to toggle source
# File lib/google_play_search/utils.rb, line 2
def add_http_prefix(url)
  unless url.start_with?("http")
    return "https:" + url
  end
end
get_image_url_from_style(url) click to toggle source
# File lib/google_play_search/utils.rb, line 8
def get_image_url_from_style(url)
  if url.start_with?("background-image:url(")
    return url["background-image:url(".length..-2]
  end
end