Class: Audiences::Scim::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/audiences/scim/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, attributes: "id,externalId,displayName", **options) ⇒ Resource

Returns a new instance of Resource.



8
9
10
11
12
# File 'lib/audiences/scim/resource.rb', line 8

def initialize(type:, attributes: "id,externalId,displayName", **options)
  @type = type
  @options = options
  @options[:attributes] = attributes
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



6
7
8
# File 'lib/audiences/scim/resource.rb', line 6

def options
  @options
end

#typeObject

Returns the value of attribute type.



6
7
8
# File 'lib/audiences/scim/resource.rb', line 6

def type
  @type
end

Instance Method Details

#query(**options) ⇒ Object



14
15
16
# File 'lib/audiences/scim/resource.rb', line 14

def query(**options)
  ResourcesQuery.new(Scim.client, resource: self, **@options, **options)
end