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.



44
45
46
# File 'lib/jacoat/document/link.rb', line 44

def initialize(href)
  @href = href
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



43
44
45
# File 'lib/jacoat/document/link.rb', line 43

def href
  @href
end

Instance Method Details

#to_hashObject



48
49
50
# File 'lib/jacoat/document/link.rb', line 48

def to_hash
  href
end