Class: Stars::Service

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/stars/services/service.rb

Direct Known Subclasses

Convore, Favstar

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.more(post) ⇒ Object



22
# File 'lib/stars/services/service.rb', line 22

def self.more(post) ; end

.postsObject

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

#nameObject

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

#postsObject

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

#usernameObject



11
12
13
# File 'lib/stars/services/service.rb', line 11

def username
  Stars.config.username(name)
end