Simple libary that connects with the Jyte API (http://jyte.com/site/api). Just <tt>initialize</tt> Jyte::Contact or Jyte::Group, and run API-methods as Ruby-methods. If you need parameters, just run the method with a Hash as first parameter.
== Usage
require 'jyte'
me = Jyte::Contact.new("claimid.com/judofyr")
me.roster #=> Array with all my contacts
linux = Jyte::Group.new("Linux")
linux.is_member(:openid => me) #=> true
== Extending
This libary is built to be extended.
module Jyte
class Group
def initialize(name)
url 'group', name
@name = name
end
end
end
This is all the code that is needed for Jyte::Group
== Usage
require 'jyte'
me = Jyte::Contact.new("claimid.com/judofyr")
me.roster #=> Array with all my contacts
linux = Jyte::Group.new("Linux")
linux.is_member(:openid => me) #=> true
== Extending
This libary is built to be extended.
module Jyte
class Group
def initialize(name)
url 'group', name
@name = name
end
end
end
This is all the code that is needed for Jyte::Group