Class: Observation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#datetimeObject (readonly)

Returns the value of attribute datetime

Returns:

  • (Object)

    the current value of datetime



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def datetime
  @datetime
end

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def description
  @description
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def id
  @id
end

#locationObject (readonly)

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def location
  @location
end

#place_guessObject (readonly)

Returns the value of attribute place_guess

Returns:

  • (Object)

    the current value of place_guess



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def place_guess
  @place_guess
end

#placesObject (readonly)

Returns the value of attribute places

Returns:

  • (Object)

    the current value of places



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def places
  @places
end

#taxonObject (readonly)

Returns the value of attribute taxon

Returns:

  • (Object)

    the current value of taxon



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def taxon
  @taxon
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def url
  @url
end

#userObject (readonly)

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def user
  @user
end

#uuidObject (readonly)

Returns the value of attribute uuid

Returns:

  • (Object)

    the current value of uuid



61
62
63
# File 'lib/inat-channel/data_types.rb', line 61

def uuid
  @uuid
end

Instance Method Details

#dateObject



65
66
67
# File 'lib/inat-channel/data_types.rb', line 65

def date
  datetime.to_date
end

#iconObject



62
63
64
# File 'lib/inat-channel/data_types.rb', line 62

def icon
  IC::ICONS[:observation]
end

#timeObject



68
69
70
# File 'lib/inat-channel/data_types.rb', line 68

def time
  datetime.to_time
end