Class: Audiences::Scim::Resource
- Inherits:
-
Object
- Object
- Audiences::Scim::Resource
- Defined in:
- lib/audiences/scim/resource.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type:, attributes: "id,externalId,displayName", **options) ⇒ Resource
constructor
A new instance of Resource.
- #query(**options) ⇒ Object
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", **) @type = type @options = @options[:attributes] = attributes end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
6 7 8 |
# File 'lib/audiences/scim/resource.rb', line 6 def @options end |
#type ⇒ Object
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(**) ResourcesQuery.new(Scim.client, resource: self, **@options, **) end |