Class: Project

Inherits:
Object
  • Object
show all
Defined in:
lib/google_refine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/google_refine.rb', line 6

def id
  @id
end

#refineObject

Returns the value of attribute refine.



7
8
9
# File 'lib/google_refine.rb', line 7

def refine
  @refine
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/google_refine.rb', line 14

def to_s
  "#{self.refine.url}/project?project=#{self.id}"
end