Class: Feed2Gram::Media

Inherits:
Struct
  • Object
show all
Defined in:
lib/feed2gram/parses_entries.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#cover_urlObject

Returns the value of attribute cover_url

Returns:

  • (Object)

    the current value of cover_url



5
6
7
# File 'lib/feed2gram/parses_entries.rb', line 5

def cover_url
  @cover_url
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



5
6
7
# File 'lib/feed2gram/parses_entries.rb', line 5

def media_type
  @media_type
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



5
6
7
# File 'lib/feed2gram/parses_entries.rb', line 5

def url
  @url
end

Instance Method Details

#video?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/feed2gram/parses_entries.rb', line 6

def video?
  media_type == "VIDEO"
end