Class: Mastodon::Filter

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/filter.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 = {}) ⇒ Filter

Returns a new instance of Filter.



26
27
28
29
# File 'lib/mastodon/filter.rb', line 26

def initialize(attributes = {})
  attributes.fetch('id')
  super
end

Instance Attribute Details

#contextArray<String> (readonly)

Returns:

  • (Array<String>)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at

#expires_atString (readonly)

Returns:

  • (String)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at

#idString (readonly)

Returns:

  • (String)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at

#irreversible?Boolean (readonly)

Returns:

  • (Boolean)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at

#phraseString (readonly)

Returns:

  • (String)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at

#whole_word?Boolean (readonly)

Returns:

  • (Boolean)


18
19
20
21
# File 'lib/mastodon/filter.rb', line 18

normal_attr_reader :id,
:phrase,
:context,
:expires_at