Class: Place
- Inherits:
-
Data
- Object
- Data
- Place
- Defined in:
- lib/inat-channel/data_types.rb
Instance Attribute Summary collapse
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
Instance Attribute Details
#link ⇒ Object (readonly)
Returns the value of attribute link
98 99 100 |
# File 'lib/inat-channel/data_types.rb', line 98 def link @link end |
#tag ⇒ Object (readonly)
Returns the value of attribute tag
98 99 100 |
# File 'lib/inat-channel/data_types.rb', line 98 def tag @tag end |
#text ⇒ Object (readonly)
Returns the value of attribute text
98 99 100 |
# File 'lib/inat-channel/data_types.rb', line 98 def text @text end |
Instance Method Details
#icon ⇒ Object
99 100 101 |
# File 'lib/inat-channel/data_types.rb', line 99 def icon IC::ICONS[:place] end |
#title ⇒ Object
105 106 107 |
# File 'lib/inat-channel/data_types.rb', line 105 def title text end |
#to_tag ⇒ Object
102 103 104 |
# File 'lib/inat-channel/data_types.rb', line 102 def to_tag tag&.to_tag end |
#url ⇒ Object
108 109 110 |
# File 'lib/inat-channel/data_types.rb', line 108 def url link end |