hookercookerman-amee 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +31 -42
- data/lib/amee/profile_api/profile_item.rb +2 -1
- data/lib/amee.rb +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,48 +1,37 @@
|
|
1
|
-
= Amee
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
Pagination on data_items
|
31
|
-
|
32
|
-
@data_category = session.get_data_category("/data/whatever_path", :query => {:itemsPerPage => 30, :page => 1})
|
33
|
-
@data_items = @data_category.paginate_data_items(:per_page => 30,:page => params[:page])
|
34
|
-
|
35
|
-
You know have a pagintated data_items
|
36
|
-
|
37
|
-
= TODOS
|
38
|
-
|
39
|
-
Pagination (should be simple enough just hook into will_paginate collections)
|
40
|
-
Other stuff when start to use amee api fully
|
1
|
+
= Amee
|
2
|
+
|
3
|
+
* http://wiki.github.com/hookercookerman/amee
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
Amee is a Ruby wrapper over the Amee Platform[http://www.amee.com]
|
8
|
+
|
9
|
+
* Idiomatic Ruby
|
10
|
+
* Concrete classes and methods modeling Amee data, so it's easy for a Rubyist to understand what's available
|
11
|
+
* Cucumber Features and specs
|
12
|
+
|
13
|
+
== REQUIREMENTS:
|
14
|
+
|
15
|
+
Montra
|
16
|
+
Httparty
|
17
|
+
will_paginate (if you want to paginate data_items)
|
18
|
+
|
19
|
+
== INSTALL:
|
20
|
+
|
21
|
+
* Non Rails
|
22
|
+
|
23
|
+
The best way is:
|
24
|
+
|
25
|
+
gem install hookercookerman-amee
|
26
|
+
|
27
|
+
Amee can be installed as a Rails plugin by:
|
28
|
+
|
29
|
+
script/plugin install git@github.com:hookercookerman/amee.git
|
41
30
|
|
42
31
|
= TICKETS GROUP
|
43
32
|
|
44
|
-
https://dynamic50.lighthouseapp.com/projects/29811-amee/overview
|
33
|
+
* https://dynamic50.lighthouseapp.com/projects/29811-amee/overview
|
45
34
|
|
46
|
-
http://groups.google.com/group/amee-gem
|
35
|
+
* http://groups.google.com/group/amee-gem
|
47
36
|
|
48
37
|
|
@@ -23,8 +23,8 @@ module Amee
|
|
23
23
|
session.api_call(:put, "profile_item", self.full_path,
|
24
24
|
:query => fields.merge({:representation => true})) do |response|
|
25
25
|
populate_from_hash!(response)
|
26
|
+
self
|
26
27
|
end
|
27
|
-
self
|
28
28
|
end
|
29
29
|
|
30
30
|
def destroy
|
@@ -50,6 +50,7 @@ module Amee
|
|
50
50
|
def populate!
|
51
51
|
session.api_call(:get, "profile_item", self.full_path) do |response|
|
52
52
|
populate_from_hash!(response)
|
53
|
+
self
|
53
54
|
end
|
54
55
|
@lazy_loaded = true
|
55
56
|
end
|
data/lib/amee.rb
CHANGED