Class: Mastodon::Entities::Media

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/entities/media.rb

Overview

Media parts of a toot, like pictures or videos.

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

Method Summary

Methods inherited from Base

collection_attr_reader, define_attribute_method, define_predicate_method, #initialize, normal_attr_reader, object_attr_reader, predicate_attr_reader

Constructor Details

This class inherits a constructor from Mastodon::Base

Instance Attribute Details

#descriptionString (readonly)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#idInteger (readonly)

Returns:

  • (Integer)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#metaHash (readonly)

Returns:

  • (Hash)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#preview_urlString (readonly)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#remote_urlString (readonly)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#typeString (readonly)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description

#urlString (readonly)

Returns:

  • (String)


22
23
24
25
26
27
28
# File 'lib/mastodon/entities/media.rb', line 22

normal_attr_reader :id,
:url,
:remote_url,
:preview_url,
:type,
:meta,
:description