Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Rugalytics 0.0.4

    Download button

    No screenshots available
    Downloads: 579  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    13 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rob McKinnon | More programs
    MIT/X Consortium Lic... / FREE
    August 2nd, 2008, 07:00 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Rugalytics description

    Rugalytics is a Ruby Google Analytics API.

    Rugalytics is a Ruby Google Analytics API.

    The Rugalytics API is in early development so it may change slightly over time.

    To Authenticate

    Login with your Google Analytics user name and password:

    require 'rugalytics'

    Rugalytics.login 'username', 'password'


    To Obtain Profile

    Get profile using account name and profile name:

    profile = Rugalytics.find_profile('your_site.com', 'blog.your_site.com')

    If account name and profile name are the same:

    profile = Rugalytics.find_profile('your_site.com')

    To Get Profile Summary Statistics

    Obtaining page views:

    profile.pageviews # default period is one month ending today
    => 160600

    profile.pageviews :from=>'2007-01-01'
    => 2267550

    profile.pageviews :from=>'2007-01-01', :to=>'2007-01-02'
    => 24980

    The +pageviews+ method is doing this under the hood:

    report = profile.load_report('Pageviews', :from=>'2007-01-01', :to=>'2007-01-02')

    report.page_views_total
    => 24980

    And under the hood, the +page_views_total+ method is actually calling:

    report.page_views_graph.sum_of_points
    => 24980


    About Ruby:

    Ruby is a dynamic, reflective, general purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features. Ruby originated in Japan during the mid-1990s and was initially developed and designed by Yukihiro "Matz" Matsumoto.

    Ruby supports multiple programming paradigms (including functional, object oriented and imperative), and features a dynamic type system and automatic memory management; it is therefore similar in varying respects to Python, Perl, Lisp, Dylan, and CLU.

    In its current, official implementation, written in C, Ruby is a single-pass interpreted language. As there is currently no specification of the Ruby language, this implementation is considered the de facto reference. As of 2008, there are a number of alternative implementations of the Ruby language, including Rubinius, JRuby, YARV, and IronRuby, each of which takes a different approach, with JRuby providing just-in-time compilation functionality.

    The language was created by Yukihiro Matsumoto, who started working on Ruby on February 24, 1993, and released it to the public in 1995. "Ruby" was named as a gemstone because of a joke within Matsumoto's circle of friends alluding to the name of the Perl programming language.

    As of December 2007, the latest stable version of the reference implementation is 1.8.6. Apart from the reference, several other virtual machines are being developed for Ruby. These include JRuby, a port of Ruby to the Java platform, IronRuby, an implementation for the .NET Framework produced by Microsoft, and Rubinius, an interpreter modeled after self-hosting Smalltalk virtual machines.

    Requirements:

    · Ruby
    · RubyGems



    Product's homepage

    Requirements:

    · Ruby
    · RubyGems

      


    TAGS:

    Google Analytics | Ruby API | Ruby library | Ruby | Google | Analytics

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM