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


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)


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

normal_attr_reader :id

#domain_blocking?Boolean (readonly)


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

normal_attr_reader :id

#endorsed?Boolean (readonly)


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

normal_attr_reader :id

#followed_by?Boolean (readonly)


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

normal_attr_reader :id

#following?Boolean (readonly)


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

normal_attr_reader :id

#idString (readonly)


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

normal_attr_reader :id

#muting?Boolean (readonly)


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

normal_attr_reader :id

#muting_notifications?Boolean (readonly)


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

normal_attr_reader :id

#requested?Boolean (readonly)


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

normal_attr_reader :id

#showing_reblogs?Boolean (readonly)


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

normal_attr_reader :id