Class: EmailHelper::EmailLink

Inherits:
Object
  • Object
show all
Defined in:
lib/watirmark/cucumber/email_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(doc) ⇒ EmailLink

Returns a new instance of EmailLink.



85
86
87
88
# File 'lib/watirmark/cucumber/email_helper.rb', line 85

def initialize(doc)
  @href = doc['href']
  @text = doc.content
end

Instance Attribute Details

#hrefObject

Returns the value of attribute href.



83
84
85
# File 'lib/watirmark/cucumber/email_helper.rb', line 83

def href
  @href
end

#textObject

Returns the value of attribute text.



83
84
85
# File 'lib/watirmark/cucumber/email_helper.rb', line 83

def text
  @text
end