Class: Project
- Inherits:
-
Object
- Object
- Project
- Defined in:
- lib/google_refine.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#refine ⇒ Object
Returns the value of attribute refine.
Instance Method Summary collapse
-
#initialize(refine, id) ⇒ Project
constructor
A new instance of Project.
- #to_s ⇒ Object
Constructor Details
#initialize(refine, id) ⇒ Project
Returns a new instance of Project.
9 10 11 12 |
# File 'lib/google_refine.rb', line 9 def initialize(refine, id) self.refine = refine self.id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/google_refine.rb', line 6 def id @id end |
#refine ⇒ Object
Returns the value of attribute refine.
7 8 9 |
# File 'lib/google_refine.rb', line 7 def refine @refine end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/google_refine.rb', line 14 def to_s "#{self.refine.url}/project?project=#{self.id}" end |