Class: Stars::Service
- Inherits:
-
Object
- Object
- Stars::Service
- Includes:
- HTTParty
- Defined in:
- lib/stars/services/service.rb
Class Method Summary collapse
- .more(post) ⇒ Object
-
.posts ⇒ Object
Initializes a instance and returns the Posts.
Instance Method Summary collapse
-
#name ⇒ Object
Returns a String name of the Service.
-
#posts ⇒ Object
Returns an Array of Posts.
- #username ⇒ Object
Class Method Details
.more(post) ⇒ Object
22 |
# File 'lib/stars/services/service.rb', line 22 def self.more(post) ; end |
.posts ⇒ Object
Initializes a instance and returns the Posts.
Creates a new instance of the Service and returns an Array of Post objects.
28 29 30 |
# File 'lib/stars/services/service.rb', line 28 def self.posts self.new.posts end |
Instance Method Details
#name ⇒ Object
Returns a String name of the Service.
We’ll display this across Stars to identify this service.
9 |
# File 'lib/stars/services/service.rb', line 9 def name ; end |
#posts ⇒ Object
Returns an Array of Posts.
This method — to be overriden by individual Service classes — returns an Array of Post items. Items in each Post should be associated with individual Star objects, so we can quickly iterate over a Post’s Stars.
20 |
# File 'lib/stars/services/service.rb', line 20 def posts ; end |