Sha256: 63689a52083561efc780ea4da13ae4cd6e03ff8e58ca0f19e49f70973eb57a76
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module Rubyoverflow class ApiSites < Base attr_reader :api_sites def initialize(hash, url = '') mash = ApiSitesDash.new hash @api_sites = Array.new mash.api_sites.each{|siteHash| @api_sites.push(ApiSite.new siteHash)} end class << self def retrieve_sites() client = Client.stackauth_client(Base.client.api_key) hash,url = client.request('sites',{}) ApiSites.new hash,url end end end class ApiSitesDash < BaseDash property :api_sites end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyoverflow-1.0.2 | lib/rubyoverflow/apiSites.rb |