Class: Jacoat::Document::Link::Simple

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(href) ⇒ Simple

Returns a new instance of Simple.



55
56
57
# File 'lib/jacoat/document/link.rb', line 55

def initialize(href)
  @href = href
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



54
55
56
# File 'lib/jacoat/document/link.rb', line 54

def href
  @href
end

Instance Method Details

#to_hashObject



59
60
61
# File 'lib/jacoat/document/link.rb', line 59

def to_hash
  href
end