class Kickscraper::Project

Attributes

comments[RW]
rewards[RW]
updates[RW]

Public Instance Methods

active?() click to toggle source
# File lib/kickscraper/client/project.rb, line 34
def active?
    state == "live"
end
inspect() click to toggle source
# File lib/kickscraper/client/project.rb, line 15
def inspect
    "<Project: '#{to_s}'>"
end
reload!() click to toggle source
# File lib/kickscraper/client/project.rb, line 19
def reload!
    if self.urls.api.nil?
      the_full_project = Kickscraper.client.find_project(self.id)
      project_api_url = the_full_project.nil? ? nil : the_full_project.urls.api.project
    else
      project_api_url = self.urls.api.project
    end
    @raw = Kickscraper.client.process_api_url("Project", project_api_url, false) unless project_api_url.nil?
    Kickscraper::Project::do_coercion(self)
end
successful?() click to toggle source
# File lib/kickscraper/client/project.rb, line 30
def successful?
    pledged >= goal
end
to_s() click to toggle source
# File lib/kickscraper/client/project.rb, line 11
def to_s
    name
end