Class: Mastodon::Field
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #value ⇒ String readonly
- #verified_at ⇒ String readonly
Attributes inherited from Base
Instance Method Summary collapse
-
#verified? ⇒ Boolean
Is this field a verified link?.
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
#name ⇒ String (readonly)
10 |
# File 'lib/mastodon/field.rb', line 10 normal_attr_reader :name, :value, :verified_at |
#value ⇒ String (readonly)
10 |
# File 'lib/mastodon/field.rb', line 10 normal_attr_reader :name, :value, :verified_at |
#verified_at ⇒ String (readonly)
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?
14 15 16 |
# File 'lib/mastodon/field.rb', line 14 def verified? attributes['verified_at'].present? end |