Class: TINAMI::Client
- Inherits:
-
API
- Object
- API
- TINAMI::Client
show all
- Defined in:
- lib/tinami/client.rb
Overview
Wrapper for the TINAMI REST API
Instance Method Summary
collapse
Methods inherited from API
#get, #initialize, #post
Constructor Details
This class inherits a constructor from TINAMI::API
Instance Method Details
#__add_bookmark ⇒ Object
48
|
# File 'lib/tinami/client.rb', line 48
alias_method :__add_bookmark, :add_bookmark
|
#__add_collection ⇒ Object
43
|
# File 'lib/tinami/client.rb', line 43
alias_method :__add_collection, :add_collection
|
73
|
# File 'lib/tinami/client.rb', line 73
alias_method :__add_comment, :add_comment
|
#__auth ⇒ Object
38
|
# File 'lib/tinami/client.rb', line 38
alias_method :__auth, :auth
|
68
|
# File 'lib/tinami/client.rb', line 68
alias_method :__comments, :comments
|
#__content ⇒ Object
58
|
# File 'lib/tinami/client.rb', line 58
alias_method :__content, :content
|
#__creator ⇒ Object
63
|
# File 'lib/tinami/client.rb', line 63
alias_method :__creator, :creator
|
#__ranking ⇒ Object
53
|
# File 'lib/tinami/client.rb', line 53
alias_method :__ranking, :ranking
|
78
|
# File 'lib/tinami/client.rb', line 78
alias_method :__remove_comment, :remove_comment
|
#__support ⇒ Object
83
|
# File 'lib/tinami/client.rb', line 83
alias_method :__support, :support
|
#add_bookmark(prof_id) ⇒ Object
49
50
51
|
# File 'lib/tinami/client.rb', line 49
def add_bookmark(prof_id)
__add_bookmark(:prof_id => prof_id)
end
|
#add_collection(cont_id) ⇒ Object
44
45
46
|
# File 'lib/tinami/client.rb', line 44
def add_collection(cont_id)
__add_collection(:cont_id => cont_id)
end
|
74
75
76
|
# File 'lib/tinami/client.rb', line 74
def (cont_id, )
(:cont_id => cont_id, :comment => )
end
|
#auth(email, password) ⇒ Object
39
40
41
|
# File 'lib/tinami/client.rb', line 39
def auth(email, password)
__auth(:email => email, :password => password)
end
|
69
70
71
|
# File 'lib/tinami/client.rb', line 69
def (cont_id)
(:cont_id => cont_id)
end
|
#content(cont_id) ⇒ Object
59
60
61
|
# File 'lib/tinami/client.rb', line 59
def content(cont_id)
__content(:cont_id => cont_id)
end
|
#creator(prof_id) ⇒ Object
64
65
66
|
# File 'lib/tinami/client.rb', line 64
def creator(prof_id)
__creator(:prof_id => prof_id)
end
|
#ranking(category) ⇒ Object
54
55
56
|
# File 'lib/tinami/client.rb', line 54
def ranking(category)
__ranking(:category => category)
end
|
79
80
81
|
# File 'lib/tinami/client.rb', line 79
def ()
(:comment_id => )
end
|
#support(cont_id) ⇒ Object
84
85
86
|
# File 'lib/tinami/client.rb', line 84
def support(cont_id)
__support(:cont_id => cont_id)
end
|