Class: Place

Inherits:
Data
  • Object
show all
Defined in:
lib/inat-channel/data_types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

Returns the value of attribute link

Returns:

  • (Object)

    the current value of link



98
99
100
# File 'lib/inat-channel/data_types.rb', line 98

def link
  @link
end

#tagObject (readonly)

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



98
99
100
# File 'lib/inat-channel/data_types.rb', line 98

def tag
  @tag
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



98
99
100
# File 'lib/inat-channel/data_types.rb', line 98

def text
  @text
end

Instance Method Details

#iconObject



99
100
101
# File 'lib/inat-channel/data_types.rb', line 99

def icon
  IC::ICONS[:place]
end

#titleObject



105
106
107
# File 'lib/inat-channel/data_types.rb', line 105

def title
  text
end

#to_tagObject



102
103
104
# File 'lib/inat-channel/data_types.rb', line 102

def to_tag
  tag&.to_tag
end

#urlObject



108
109
110
# File 'lib/inat-channel/data_types.rb', line 108

def url
  link
end