class Cricketer::API
Constants
- URL_BASE
Public Instance Methods
content()
click to toggle source
# File lib/api.rb, line 15 def content @content ||= JSON.parse(open(url).read) end
url()
click to toggle source
# File lib/api.rb, line 11 def url [URL_BASE, "#{ match_id }.json"].join("/") end