Class: Mastodon::Card

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

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

#author_nameString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#author_urlString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#descriptionString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#heightString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#htmlString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#imageString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#provider_nameString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#provider_urlString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#titleString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#typeString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#urlString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height

#widthString (readonly)

Returns:

  • (String)


28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/mastodon/card.rb', line 28

normal_attr_reader :url,
:title,
:description,
:image,
:type,
:author_name,
:author_url,
:provider_name,
:provider_url,
:html,
:width,
:height