Module: Kickstapi
- Defined in:
- lib/kickstapi.rb,
lib/kickstapi/reward.rb,
lib/kickstapi/ghostly.rb,
lib/kickstapi/project.rb,
lib/kickstapi/version.rb,
lib/kickstapi/project_mapper.rb,
lib/kickstapi/kickstarter_gateway.rb
Defined Under Namespace
Modules: Ghostly Classes: KickstarterGateway, Project, ProjectMapper, Reward
Constant Summary collapse
- VERSION =
"0.2.4"
Class Method Summary collapse
- .find_project_by_url(url) ⇒ Object
- .find_projects_by_username(username) ⇒ Object
- .find_projects_with_filter(filter, max_results = :all) ⇒ Object
Class Method Details
.find_project_by_url(url) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/kickstapi.rb', line 19 def self.find_project_by_url(url) gw = Kickstapi::KickstarterGateway.new mapper = Kickstapi::ProjectMapper.new(gw) mapper.project_by_url url end |
.find_projects_by_username(username) ⇒ Object
26 27 28 29 30 31 |
# File 'lib/kickstapi.rb', line 26 def self.find_projects_by_username(username) gw = Kickstapi::KickstarterGateway.new mapper = Kickstapi::ProjectMapper.new(gw) mapper.projects_by_username username end |
.find_projects_with_filter(filter, max_results = :all) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/kickstapi.rb', line 12 def self.find_projects_with_filter(filter, max_results = :all) gw = Kickstapi::KickstarterGateway.new mapper = Kickstapi::ProjectMapper.new(gw) mapper.projects_by_filter filter, max_results end |