class Userlist::Push::Relation
Attributes
scope[R]
type[R]
Public Class Methods
new(scope, type, operations = [])
click to toggle source
# File lib/userlist/push/relation.rb, line 4 def initialize(scope, type, operations = []) @scope = scope @type = type operations.each { |operation| singleton_class.send(:include, operation::ClassMethods) } end
Public Instance Methods
config()
click to toggle source
# File lib/userlist/push/relation.rb, line 25 def config scope.config end
endpoint()
click to toggle source
# File lib/userlist/push/relation.rb, line 17 def endpoint type.endpoint end
from_payload(payload, config = self.config)
click to toggle source
# File lib/userlist/push/relation.rb, line 13 def from_payload(payload, config = self.config) type.from_payload(payload, config) end
strategy()
click to toggle source
# File lib/userlist/push/relation.rb, line 21 def strategy scope.strategy end