Class: Mastodon::Field

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/field.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, #initialize, normal_attr_reader, object_attr_reader, predicate_attr_reader

Constructor Details

This class inherits a constructor from Mastodon::Base

Instance Attribute Details

#nameString (readonly)

Returns:

  • (String)


10
# File 'lib/mastodon/field.rb', line 10

normal_attr_reader :name, :value, :verified_at

#valueString (readonly)

Returns:

  • (String)


10
# File 'lib/mastodon/field.rb', line 10

normal_attr_reader :name, :value, :verified_at

#verified_atString (readonly)

Returns:

  • (String)


10
# File 'lib/mastodon/field.rb', line 10

normal_attr_reader :name, :value, :verified_at

Instance Method Details

#verified?Boolean

Is this field a verified link?

Returns:

  • (Boolean)


14
15
16
# File 'lib/mastodon/field.rb', line 14

def verified?
  attributes['verified_at'].present?
end