Class: Jacoat::Document::Link::Simple
- Inherits:
-
Object
- Object
- Jacoat::Document::Link::Simple
- Defined in:
- lib/jacoat/document/link.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
Instance Method Summary collapse
-
#initialize(href) ⇒ Simple
constructor
A new instance of Simple.
- #to_hash ⇒ Object
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
#href ⇒ Object (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_hash ⇒ Object
59 60 61 |
# File 'lib/jacoat/document/link.rb', line 59 def to_hash href end |