Class: Scim::Kit::V2::ResourceType

Inherits:
Object
  • Object
show all
Includes:
Templatable
Defined in:
lib/scim/kit/v2/resource_type.rb

Overview

Represents a ResourceType Schema tools.ietf.org/html/rfc7643#section-6

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Templatable

#as_json, #render, #to_h, #to_json

Constructor Details

#initialize(location:) ⇒ ResourceType

Returns a new instance of ResourceType.



17
18
19
# File 'lib/scim/kit/v2/resource_type.rb', line 17

def initialize(location:)
  @location = location
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



12
13
14
# File 'lib/scim/kit/v2/resource_type.rb', line 12

def description
  @description
end

#endpointObject

Returns the value of attribute endpoint.



13
14
15
# File 'lib/scim/kit/v2/resource_type.rb', line 13

def endpoint
  @endpoint
end

#idObject

Returns the value of attribute id.



10
11
12
# File 'lib/scim/kit/v2/resource_type.rb', line 10

def id
  @id
end

#locationObject (readonly)

Returns the value of attribute location.



15
16
17
# File 'lib/scim/kit/v2/resource_type.rb', line 15

def location
  @location
end

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/scim/kit/v2/resource_type.rb', line 11

def name
  @name
end

#schemaObject

Returns the value of attribute schema.



14
15
16
# File 'lib/scim/kit/v2/resource_type.rb', line 14

def schema
  @schema
end

Class Method Details

.build(*args) {|item| ... } ⇒ Object

Yields:

  • (item)


21
22
23
24
25
# File 'lib/scim/kit/v2/resource_type.rb', line 21

def self.build(*args)
  item = new(*args)
  yield item
  item
end