Class: Userlist::Push::Relationship

Inherits:
Resource
  • Object
show all
Includes:
Operations::Create, Operations::Delete
Defined in:
lib/userlist/push/relationship.rb

Instance Attribute Summary

Attributes inherited from Resource

#config, #payload

Instance Method Summary collapse

Methods included from Operations::Delete

#delete?, included

Methods included from Operations::Create

#create?, included

Methods inherited from Resource

#attribute_names, endpoint, #eql?, from_payload, #hash, #identifier, #initialize, #relationship_names, relationship_names, relationships, resource_name, #respond_to_missing?, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Userlist::Push::Resource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Userlist::Push::Resource

Instance Method Details

#push?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/userlist/push/relationship.rb', line 10

def push?
  super && user&.push? && company&.push?
end