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.



24
25
26
27
# File 'lib/mastodon/filter.rb', line 24

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

Instance Attribute Details

#contextArray<String> (readonly)

Returns:

  • (Array<String>)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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

#expires_atString (readonly)

Returns:

  • (String)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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

#idString (readonly)

Returns:

  • (String)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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

#irreversible?Boolean (readonly)

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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

#phraseString (readonly)

Returns:

  • (String)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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

#whole_word?Boolean (readonly)

Returns:

  • (Boolean)


16
17
18
19
# File 'lib/mastodon/filter.rb', line 16

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