Class: Userlist::Push::Relationship

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

Instance Attribute Summary

Attributes inherited from Resource

#config, #context, #payload

Instance Method Summary collapse

Methods included from Operations::Delete

#delete?, included

Methods included from Operations::Push

included

Methods inherited from Resource

association_names, #association_names, associations, #attribute_names, endpoint, #eql?, #for_context, from_payload, #hash, #identifier, #initialize, 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



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

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