Sha256: 8d9fb35ea65e4ec373473d78807ab28fdb21da5f0a1a7bc2b55790598f288fbe

Contents?: true

Size: 485 Bytes

Versions: 3

Compression:

Stored size: 485 Bytes

Contents

module Postly
  class Comment < Connection
    attr_accessor *COMMENT_ATTRS
  # URL
  # http://postly.com/api/newcomment
  # Fields
  # "post_id" - The post id to comment on
  # "comment" - The comment body
  # "name" - Optional. The name to use
  # "email" - Optional. The email address to use
  # "date" - Optional. In GMT. Any parsable format. Cannot be in the future.
  def self.create params={}
    conform post "/newcomment", defaults.merge( :query => params )
  end
  
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
progressions-postly-0.2.2 lib/postly/comment.rb
postly-0.2.2 lib/postly/comment.rb
postly-0.2.1 lib/postly/comment.rb