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.
44 45 46 |
# File 'lib/jacoat/document/link.rb', line 44 def initialize(href) @href = href end |
Instance Attribute Details
#href ⇒ Object (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_hash ⇒ Object
48 49 50 |
# File 'lib/jacoat/document/link.rb', line 48 def to_hash href end |