Class: Gretel::Link

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, url) ⇒ Link

Returns a new instance of Link.



5
6
7
# File 'lib/gretel/link.rb', line 5

def initialize(text, url)
  @text, @url = text, url
end

Instance Attribute Details

#textObject

Returns the value of attribute text.



3
4
5
# File 'lib/gretel/link.rb', line 3

def text
  @text
end

#urlObject

Returns the value of attribute url.



3
4
5
# File 'lib/gretel/link.rb', line 3

def url
  @url
end