This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | I released a simple Ruby <a href="http://wakoopa.com/">Wakoopa</a> API wrapper. It's built to give an ActiveRecord-like way to fetch your software usage data. | |
| The <a href="http://github.com/jeffkreeftmeijer/wakoopa/">source is on github</a>, there's a pretty good <a href="http://wiki.github.com/jeffkreeftmeijer/wakoopa/">wiki</a> and the <a href="http://gemcutter.org/gems/wakoopa/">gem is on gemcutter</a>. If you run into any issues, please <a href="http://github.com/jeffkreeftmeijer/wakoopa/issues/">report</a>. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Model < ActiveRecord::Base | |
| def self.count(*args) | |
| puts 'yay, counting!' | |
| super(*args) | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Tosti | |
| def self.validate(*ingredients) | |
| ingredients.include?(:kaas) && ingredients.include?(:brood) | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Tosti | |
| def self.validate(*ingredients, preparation_method) | |
| ingredients.include?(:brood) && ingredients.length > 1 && preparation_method == :grill | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | class Tosti | |
| def self.validate(*ingredients, preparation_method) | |
| ingredients.include?(:brood) && ingredients.length > 1 && preparation_method == :grill | |
| end | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | require 'rubygems' | |
| require 'httparty' | |
| loop do | |
| puts HTTParty.get('http://store.apple.com/').include?('backsoon') ? 'down' : 'up' | |
| sleep 5 | |
| end | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | module MyApi | |
| include Nori | |
| class << self | |
| attr_accessor :username | |
| end | |
| class User < Resource | |
| action :index, :url => 'http://myapi.com/users.xml' | |
| end |