Class: Cadenya::Types::SubjectInfo
- Inherits:
-
Object
- Object
- Cadenya::Types::SubjectInfo
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#objective_count ⇒ Object
readonly
Returns the value of attribute objective_count.
-
#tenant ⇒ Object
readonly
Returns the value of attribute tenant.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(tenant: nil, objective_count: nil) ⇒ SubjectInfo
constructor
A new instance of SubjectInfo.
- #to_h ⇒ Object
Constructor Details
#initialize(tenant: nil, objective_count: nil) ⇒ SubjectInfo
Returns a new instance of SubjectInfo.
5325 5326 5327 5328 |
# File 'lib/cadenya/types.rb', line 5325 def initialize(tenant: nil, objective_count: nil) @tenant = tenant @objective_count = objective_count end |
Instance Attribute Details
#objective_count ⇒ Object (readonly)
Returns the value of attribute objective_count.
5323 5324 5325 |
# File 'lib/cadenya/types.rb', line 5323 def objective_count @objective_count end |
#tenant ⇒ Object (readonly)
Returns the value of attribute tenant.
5323 5324 5325 |
# File 'lib/cadenya/types.rb', line 5323 def tenant @tenant end |
Class Method Details
.from_json(data) ⇒ Object
5330 5331 5332 5333 5334 5335 |
# File 'lib/cadenya/types.rb', line 5330 def self.from_json(data) new( tenant: data["tenant"].nil? ? nil : Types::TenantReference.from_json(data["tenant"]), objective_count: data["objectiveCount"], ) end |