Sha256: 6d8015e8514753c71090db7409bb3a5c1fb48b2424b44604afb01dd9cac4fcf2
Contents?: true
Size: 593 Bytes
Versions: 10
Compression:
Stored size: 593 Bytes
Contents
module Tweetsy class User ATTRIBUTES = [:id, :name, :screen_name, :location, :description, :url, :profile_image_url, :profile_background_color, :profile_text_color, :profile_link_color, :profile_sidebar_fill_color, :profile_sidebar_border_color, :friends_count, :favourites_count, :statuses_count, :followers_count, :utc_offset, :protected, :status] attr_accessor *ATTRIBUTES def initialize(xml) ATTRIBUTES.each do |attr| self.send("#{attr}=", xml.at(attr.to_s).innerHTML) if xml.at(attr.to_s) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems