Class: Mastodon::Relationship

Inherits:
Base
  • Object
show all
Defined in:
lib/mastodon/relationship.rb

Overview

Relationships. Purpose still to be found out (by Maxine Michalski)

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 = {}) ⇒ Relationship

Returns a new instance of Relationship.



33
34
35
36
# File 'lib/mastodon/relationship.rb', line 33

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

Instance Attribute Details

#blocking?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#domain_blocking?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#followed_by?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#following?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#idString (readonly)

Returns Account ID.

Returns:

  • (String)

    Account ID



23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#muting?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#muting_notifications?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id

#requested?Boolean (readonly)

Returns:

  • (Boolean)


23
# File 'lib/mastodon/relationship.rb', line 23

normal_attr_reader :id