Class: Observation
- Inherits:
-
Data
- Object
- Data
- Observation
- Defined in:
- lib/inat-channel/data_types.rb
Instance Attribute Summary collapse
-
#datetime ⇒ Object
readonly
Returns the value of attribute datetime.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#place_guess ⇒ Object
readonly
Returns the value of attribute place_guess.
-
#places ⇒ Object
readonly
Returns the value of attribute places.
-
#taxon ⇒ Object
readonly
Returns the value of attribute taxon.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
Instance Attribute Details
#datetime ⇒ Object (readonly)
Returns the value of attribute datetime
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def datetime @datetime end |
#description ⇒ Object (readonly)
Returns the value of attribute description
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def id @id end |
#location ⇒ Object (readonly)
Returns the value of attribute location
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def location @location end |
#place_guess ⇒ Object (readonly)
Returns the value of attribute place_guess
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def place_guess @place_guess end |
#places ⇒ Object (readonly)
Returns the value of attribute places
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def places @places end |
#taxon ⇒ Object (readonly)
Returns the value of attribute taxon
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def taxon @taxon end |
#url ⇒ Object (readonly)
Returns the value of attribute url
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def user @user end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid
61 62 63 |
# File 'lib/inat-channel/data_types.rb', line 61 def uuid @uuid end |
Instance Method Details
#date ⇒ Object
65 66 67 |
# File 'lib/inat-channel/data_types.rb', line 65 def date datetime.to_date end |
#icon ⇒ Object
62 63 64 |
# File 'lib/inat-channel/data_types.rb', line 62 def icon IC::ICONS[:observation] end |
#time ⇒ Object
68 69 70 |
# File 'lib/inat-channel/data_types.rb', line 68 def time datetime.to_time end |