Permalink
Browse files

truncating method head comments

  • Loading branch information...
1 parent f5bd3c5 commit d5138cd2338ecf07d81baa4db3a9cf43dc59e561 @jmettraux committed Jan 24, 2010
Showing with 0 additions and 13 deletions.
  1. +0 −3 lib/rufus/rtm/base.rb
  2. +0 −10 lib/rufus/rtm/resources.rb
@@ -52,7 +52,6 @@ module RTM
AUTH_ENDPOINT = "http://www.rememberthemilk.com/services/auth/"
REST_ENDPOINT = "http://api.rememberthemilk.com/services/rest/"
- #
# Signs the RTM request (sets the 'api_sig' parameter).
#
def self.sign (params, secret) #:nodoc:
@@ -62,7 +61,6 @@ def self.sign (params, secret) #:nodoc:
params
end
- #
# Calls an API method (milk the cow).
#
def self.milk (params={}) #:nodoc:
@@ -97,7 +95,6 @@ def self.milk (params={}) #:nodoc:
JSON.parse(res.body)['rsp']
end
- #
# Requests a timeline from RTM.
#
def self.get_timeline #:nodoc:
@@ -38,7 +38,6 @@ def initialize (hsh)
@operations = []
end
- #
# Saves the instance back to RTM.
#
def save!
@@ -54,7 +53,6 @@ def save!
protected
- #
# a class method for listing attributes that can be found
# in the hash reply coming from RTM...
#
@@ -69,7 +67,6 @@ def #{att_name}
end
end
- #
# Calls the milk() method (interacts with the RTM API).
#
def self.execute (method_name, args={})
@@ -79,7 +76,6 @@ def self.execute (method_name, args={})
Rufus::RTM.milk(args)
end
- #
# Returns the name of the resource as the API knows it
# (for example 'tasks' or 'lists').
#
@@ -88,15 +84,13 @@ def self.resource_name
self.to_s.split('::')[-1].downcase + 's'
end
- #
# Simply calls the timeline() class method.
#
def timeline
MilkResource.timeline
end
- #
# Returns the current timeline (fetches one if none has yet
# been prepared).
#
@@ -166,23 +160,20 @@ def initialize (list_id, h)
@tags = TagArray.new(self, h['tags'])
end
- #
# Deletes the task.
#
def delete!
self.class.execute('delete', prepare_api_args)
end
- #
# Marks the task as completed.
#
def complete!
self.class.execute('complete', prepare_api_args)
end
- #
# Sets the tags for the task.
#
def tags= (tags)
@@ -199,7 +190,6 @@ def self.find (params={})
parse_tasks(execute('getList', params))
end
- #
# Adds a new task (and returns it).
#
def self.add! (name, list_id=nil)

0 comments on commit d5138cd

Please sign in to comment.