Class: Postly::Site
- Inherits:
-
Connection
- Object
- Connection
- Postly::Site
- Defined in:
- lib/postly/site.rb
Class Method Summary collapse
-
.all ⇒ Object
for readability.
-
.find ⇒ Object
URL posterous.com/api/getsites Fields None.
- .first ⇒ Object
- .last ⇒ Object
Methods inherited from Connection
array_or_hash, class_name, conform, defaults, #initialize, many, #singularized_class_name
Constructor Details
This class inherits a constructor from Postly::Connection
Class Method Details
.all ⇒ Object
for readability
16 17 18 |
# File 'lib/postly/site.rb', line 16 def self.all find end |
.find ⇒ Object
URL posterous.com/api/getsites Fields None
11 12 13 |
# File 'lib/postly/site.rb', line 11 def self.find conform get("/getsites", defaults) end |
.first ⇒ Object
20 21 22 |
# File 'lib/postly/site.rb', line 20 def self.first find.first end |
.last ⇒ Object
24 25 26 |
# File 'lib/postly/site.rb', line 24 def self.last find.last end |