Class: Scim::Kit::V2::ResourceType
- Inherits:
-
Object
- Object
- Scim::Kit::V2::ResourceType
- 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
-
#description ⇒ Object
Returns the value of attribute description.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#id ⇒ Object
Returns the value of attribute id.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
Returns the value of attribute name.
-
#schema ⇒ Object
Returns the value of attribute schema.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(location:) ⇒ ResourceType
constructor
A new instance of ResourceType.
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
#description ⇒ Object
Returns the value of attribute description.
12 13 14 |
# File 'lib/scim/kit/v2/resource_type.rb', line 12 def description @description end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
13 14 15 |
# File 'lib/scim/kit/v2/resource_type.rb', line 13 def endpoint @endpoint end |
#id ⇒ Object
Returns the value of attribute id.
10 11 12 |
# File 'lib/scim/kit/v2/resource_type.rb', line 10 def id @id end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
15 16 17 |
# File 'lib/scim/kit/v2/resource_type.rb', line 15 def location @location end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/scim/kit/v2/resource_type.rb', line 11 def name @name end |
#schema ⇒ Object
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
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 |