Class: Mastodon::Relationship

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

Returns a new instance of Relationship.



36
37
38
39
# File 'lib/mastodon/relationship.rb', line 36

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

Instance Attribute Details

#blocking?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#domain_blocking?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#endorsed?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#followed_by?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#following?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#idString (readonly)

Returns Account ID.

Returns:

  • (String)

    Account ID



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

normal_attr_reader :id

#muting?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#muting_notifications?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#requested?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id

#showing_reblogs?Boolean (readonly)

Returns:

  • (Boolean)


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

normal_attr_reader :id