Class: Feed2Gram::Media
- Inherits:
-
Struct
- Object
- Struct
- Feed2Gram::Media
- Defined in:
- lib/feed2gram/parses_entries.rb
Instance Attribute Summary collapse
-
#cover_url ⇒ Object
Returns the value of attribute cover_url.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#cover_url ⇒ Object
Returns the value of attribute cover_url
5 6 7 |
# File 'lib/feed2gram/parses_entries.rb', line 5 def cover_url @cover_url end |
#media_type ⇒ Object
Returns the value of attribute media_type
5 6 7 |
# File 'lib/feed2gram/parses_entries.rb', line 5 def media_type @media_type end |
#url ⇒ Object
Returns the value of attribute url
5 6 7 |
# File 'lib/feed2gram/parses_entries.rb', line 5 def url @url end |
Instance Method Details
#video? ⇒ Boolean
6 7 8 |
# File 'lib/feed2gram/parses_entries.rb', line 6 def video? media_type == "VIDEO" end |