Sha256: ff7e3e81a878a859a41db3f1033c6b8206a89b912db9ae44a8e661ece23230f9

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

module Postly
  
  class Site < Connection
    many :posts
    attr_accessor *SITE_ATTRS
    
    # URL
    # http://posterous.com/api/getsites
    # Fields
    # None
    def self.find
      conform get("/getsites", defaults)
    end
    
    # for readability
    def self.all
      find
    end
    
    def self.first
      find.first
    end
    
    def self.last
      find.last
    end
    
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

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