Class: Mastodon::Filter
- Inherits:
-
Base
- Object
- Base
- Mastodon::Filter
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
#context ⇒ Array<String>
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|
#expires_at ⇒ String
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|
#id ⇒ String
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|
#irreversible? ⇒ Boolean
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|
#phrase ⇒ String
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|
#whole_word? ⇒ Boolean
16
17
18
19
|
# File 'lib/mastodon/filter.rb', line 16
normal_attr_reader :id,
:phrase,
:context,
:expires_at
|