Class: RubyHackernews::LinkInfo
- Inherits:
-
Object
- Object
- RubyHackernews::LinkInfo
- Defined in:
- lib/ruby-hackernews/domain/entry/link_info.rb
Instance Attribute Summary collapse
-
#href ⇒ Object
readonly
Returns the value of attribute href.
-
#site ⇒ Object
readonly
Returns the value of attribute site.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, href, site) ⇒ LinkInfo
constructor
A new instance of LinkInfo.
Constructor Details
#initialize(title, href, site) ⇒ LinkInfo
Returns a new instance of LinkInfo.
9 10 11 12 13 |
# File 'lib/ruby-hackernews/domain/entry/link_info.rb', line 9 def initialize(title, href, site) @title = title @href = href @site = site end |
Instance Attribute Details
#href ⇒ Object (readonly)
Returns the value of attribute href.
6 7 8 |
# File 'lib/ruby-hackernews/domain/entry/link_info.rb', line 6 def href @href end |
#site ⇒ Object (readonly)
Returns the value of attribute site.
7 8 9 |
# File 'lib/ruby-hackernews/domain/entry/link_info.rb', line 7 def site @site end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/ruby-hackernews/domain/entry/link_info.rb', line 5 def title @title end |