Class: Mastodon::Media
- Inherits:
-
Base
- Object
- Base
- Mastodon::Media
show all
- Defined in:
- lib/mastodon/media.rb
Instance Attribute Summary collapse
Attributes inherited from Base
#attributes
Instance Method Summary
collapse
Methods inherited from Base
collection_attr_reader, define_attribute_method, define_predicate_method, normal_attr_reader, object_attr_reader, predicate_attr_reader
Constructor Details
#initialize(attributes = {}) ⇒ Media
29
30
31
32
|
# File 'lib/mastodon/media.rb', line 29
def initialize(attributes = {})
attributes.fetch('id')
super
end
|
Instance Attribute Details
#description ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#id ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#preview_url ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#remote_url ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#text_url ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#type ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|
#url ⇒ String
20
21
22
23
24
25
26
27
|
# File 'lib/mastodon/media.rb', line 20
normal_attr_reader :id,
:type,
:url,
:remote_url,
:preview_url,
:text_url,
:meta,
:description
|