iwannagothere 0.0.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +0,0 @@
1
- module IWannaGoThere
2
- class Element
3
- attr_reader :urls, :options
4
-
5
- def initialize(hash, urls, options)
6
- hash.each{ |e| send("#{e.first}=", e.last) }
7
- @urls = urls
8
- @options = options
9
- end
10
- end
11
- end
@@ -1,11 +0,0 @@
1
- module IWannaGoThere
2
- class ItemRoute < Element
3
- attr_accessor :name, :nicename, :items_count, :id, :description, :user_id,
4
- :long_guid, :created_at, :updated_at, :delta, :from, :to, :meta
5
-
6
- def items(limit = 10)
7
- r = IWannaGoThere.get(@urls[:guide_items].params({ :route_id => @id }), @options, { :limit => limit })
8
- r['items'].collect{ |p| Item.new( p, @urls, @options ) }
9
- end
10
- end
11
- end
@@ -1,5 +0,0 @@
1
- module IWannaGoThere
2
- class User < Element
3
- attr_accessor :id, :login, :created_at
4
- end
5
- end