Class: Rafflesia::OntologyOnboardingKeyFamilyRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyOnboardingKeyFamilyRequest
- Defined in:
- lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ anchor: :anchor, columns: :columns, name: :name, relation: :relation }.freeze
Instance Attribute Summary collapse
-
#anchor ⇒ Object
Returns the value of attribute anchor.
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#name ⇒ Object
Returns the value of attribute name.
-
#relation ⇒ Object
Returns the value of attribute relation.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyOnboardingKeyFamilyRequest
constructor
A new instance of OntologyOnboardingKeyFamilyRequest.
Constructor Details
#initialize(json) ⇒ OntologyOnboardingKeyFamilyRequest
Returns a new instance of OntologyOnboardingKeyFamilyRequest.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @anchor = hash[:anchor] ? Rafflesia::OntologyOnboardingReviewedAnchorRequest.new(hash[:anchor]) : nil @columns = (hash[:columns] || []) @name = hash[:name] @relation = hash[:relation] end |
Instance Attribute Details
#anchor ⇒ Object
Returns the value of attribute anchor.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb', line 15 def anchor @anchor end |
#columns ⇒ Object
Returns the value of attribute columns.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb', line 15 def columns @columns end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb', line 15 def name @name end |
#relation ⇒ Object
Returns the value of attribute relation.
15 16 17 |
# File 'lib/rafflesia/ontology/ontology_onboarding_key_family_request.rb', line 15 def relation @relation end |