Class: Rafflesia::OntologyContextSourceBinding
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyContextSourceBinding
- Defined in:
- lib/rafflesia/ontology/ontology_context_source_binding.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, object: :object, relation: :relation, relation_digest: :relation_digest, release: :release, release_digest: :release_digest, selector: :selector }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#object ⇒ Object
Returns the value of attribute object.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#selector ⇒ Object
Returns the value of attribute selector.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyContextSourceBinding
constructor
A new instance of OntologyContextSourceBinding.
Constructor Details
#initialize(json) ⇒ OntologyContextSourceBinding
Returns a new instance of OntologyContextSourceBinding.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @object = hash[:object] @relation = hash[:relation] @relation_digest = hash[:relation_digest] @release = hash[:release] @release_digest = hash[:release_digest] @selector = hash[:selector] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def database @database end |
#object ⇒ Object
Returns the value of attribute object.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def object @object end |
#relation ⇒ Object
Returns the value of attribute relation.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def relation @relation end |
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def relation_digest @relation_digest end |
#release ⇒ Object
Returns the value of attribute release.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def release @release end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def release_digest @release_digest end |
#selector ⇒ Object
Returns the value of attribute selector.
18 19 20 |
# File 'lib/rafflesia/ontology/ontology_context_source_binding.rb', line 18 def selector @selector end |