Sha256: 24032a407856a65b157cba7452334cc009947b0a0ddbc1d6b570295eec458801
Contents?: true
Size: 529 Bytes
Versions: 2
Compression:
Stored size: 529 Bytes
Contents
module Garb module Management class Feed BASE_URL = 'https://www.googleapis.com/analytics/v3/management' attr_reader :request def initialize(session, path) @request = Request::Data.new(session, BASE_URL + path) end def parsed_response @parsed_response ||= MultiJson.load(response.body) end def entries parsed_response && parsed_response['items'] || [] end def response @response ||= request.send_request end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
garb-0.9.8 | lib/garb/management/feed.rb |
garb-0.9.7 | lib/garb/management/feed.rb |