Class: TINAMI::Client

Inherits:
API
  • Object
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_bookmarkObject



48
# File 'lib/tinami/client.rb', line 48

alias_method :__add_bookmark, :add_bookmark

#__add_collectionObject



43
# File 'lib/tinami/client.rb', line 43

alias_method :__add_collection, :add_collection

#__add_commentObject



73
# File 'lib/tinami/client.rb', line 73

alias_method :__add_comment, :add_comment

#__authObject



38
# File 'lib/tinami/client.rb', line 38

alias_method :__auth, :auth

#__commentsObject



68
# File 'lib/tinami/client.rb', line 68

alias_method :__comments, :comments

#__contentObject



58
# File 'lib/tinami/client.rb', line 58

alias_method :__content, :content

#__creatorObject



63
# File 'lib/tinami/client.rb', line 63

alias_method :__creator, :creator

#__rankingObject



53
# File 'lib/tinami/client.rb', line 53

alias_method :__ranking, :ranking

#__remove_commentObject



78
# File 'lib/tinami/client.rb', line 78

alias_method :__remove_comment, :remove_comment

#__supportObject



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

#add_comment(cont_id, comment) ⇒ Object



74
75
76
# File 'lib/tinami/client.rb', line 74

def add_comment(cont_id, comment)
  __add_comment(:cont_id => cont_id, :comment => 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

#comments(cont_id) ⇒ Object



69
70
71
# File 'lib/tinami/client.rb', line 69

def comments(cont_id)
  __comments(: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

#remove_comment(comment_id) ⇒ Object



79
80
81
# File 'lib/tinami/client.rb', line 79

def remove_comment(comment_id)
  __remove_comment(:comment_id => 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