Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add namespace to documentation

  • Loading branch information...
commit f27453d13077093b533a34bd7bf373f0149db214 1 parent 3c9c34b
Kyle Neath kneath authored

Showing 1 changed file with 10 additions and 10 deletions. Show diff stats Hide diff stats

  1. +10 10 lib/lighthouse.rb
20 lib/lighthouse.rb
@@ -74,25 +74,25 @@ class << base
74 74
75 75 # Find projects
76 76 #
77   - # Project.find(:all) # find all projects for the current account.
78   - # Project.find(44) # find individual project by ID
  77 + # Lighthouse::Project.find(:all) # find all projects for the current account.
  78 + # Lighthouse::Project.find(44) # find individual project by ID
79 79 #
80 80 # Creating a Project
81 81 #
82   - # project = Project.new(:name => 'Ninja Whammy Jammy')
  82 + # project = Lighthouse::Project.new(:name => 'Ninja Whammy Jammy')
83 83 # project.save
84 84 # # => true
85 85 #
86 86 # Updating a Project
87 87 #
88   - # project = Project.find(44)
  88 + # project = Lighthouse::Project.find(44)
89 89 # project.name = "Lighthouse Issues"
90 90 # project.public = false
91 91 # project.save
92 92 #
93 93 # Finding tickets
94 94 #
95   - # project = Project.find(44)
  95 + # project = Lighthouse::Project.find(44)
96 96 # project.tickets
97 97 #
98 98 class Project < Base
@@ -134,16 +134,16 @@ def save
134 134
135 135 # Find tickets
136 136 #
137   - # Ticket.find(:all, :params => { :project_id => 44 })
138   - # Ticket.find(:all, :params => { :project_id => 44, :q => "state:closed tagged:committed" })
  137 + # Lighthouse::Ticket.find(:all, :params => { :project_id => 44 })
  138 + # Lighthouse::Ticket.find(:all, :params => { :project_id => 44, :q => "state:closed tagged:committed" })
139 139 #
140   - # project = Project.find(44)
  140 + # project = Lighthouse::Project.find(44)
141 141 # project.tickets
142 142 # project.tickets(:q => "state:closed tagged:committed")
143 143 #
144 144 # Creating a Ticket
145 145 #
146   - # ticket = Ticket.new(:project_id => 44)
  146 + # ticket = Lighthouse::Ticket.new(:project_id => 44)
147 147 # ticket.title = 'asdf'
148 148 # ...
149 149 # ticket.tags << 'ruby' << 'rails' << '@high'
@@ -151,7 +151,7 @@ def save
151 151 #
152 152 # Updating a Ticket
153 153 #
154   - # ticket = Ticket.find(20, :params => { :project_id => 44 })
  154 + # ticket = Lighthouse::Ticket.find(20, :params => { :project_id => 44 })
155 155 # ticket.state = 'resolved'
156 156 # ticket.tags.delete '@high'
157 157 # ticket.save

0 comments on commit f27453d

Please sign in to comment.
Something went wrong with that request. Please try again.