Class: Webpipe::MapLink
- Inherits:
-
Struct
- Object
- Struct
- Webpipe::MapLink
- Defined in:
- lib/webpipe/types.rb
Overview
A URL discovered by the Map endpoint.
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description
39 40 41 |
# File 'lib/webpipe/types.rb', line 39 def description @description end |
#title ⇒ Object
Returns the value of attribute title
39 40 41 |
# File 'lib/webpipe/types.rb', line 39 def title @title end |
#url ⇒ Object
Returns the value of attribute url
39 40 41 |
# File 'lib/webpipe/types.rb', line 39 def url @url end |
Class Method Details
.from_hash(hash) ⇒ Object
40 41 42 |
# File 'lib/webpipe/types.rb', line 40 def self.from_hash(hash) new(hash["url"], hash["title"], hash["description"]) end |