Class: Cadenya::Types::SubjectAssertion
- Inherits:
-
Object
- Object
- Cadenya::Types::SubjectAssertion
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id: nil, name: nil) ⇒ SubjectAssertion
constructor
A new instance of SubjectAssertion.
- #to_h ⇒ Object
Constructor Details
#initialize(id: nil, name: nil) ⇒ SubjectAssertion
Returns a new instance of SubjectAssertion.
5302 5303 5304 5305 |
# File 'lib/cadenya/types.rb', line 5302 def initialize(id: nil, name: nil) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5300 5301 5302 |
# File 'lib/cadenya/types.rb', line 5300 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5300 5301 5302 |
# File 'lib/cadenya/types.rb', line 5300 def name @name end |
Class Method Details
.from_json(data) ⇒ Object
5307 5308 5309 5310 5311 5312 |
# File 'lib/cadenya/types.rb', line 5307 def self.from_json(data) new( id: data["id"], name: data["name"], ) end |