Class: Rafflesia::ResolvedQuerySource
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::ResolvedQuerySource
- Defined in:
- lib/rafflesia/query/resolved_query_source.rb
Constant Summary collapse
- HASH_ATTRS =
{ byte_count: :byte_count, database: :database, kind: :kind, name: :name, relation: :relation, relation_digest: :relation_digest, relation_id: :relation_id, release: :release, release_digest: :release_digest, row_count: :row_count, schema_hash: :schema_hash, schema_version: :schema_version }.freeze
Instance Attribute Summary collapse
-
#byte_count ⇒ Object
Returns the value of attribute byte_count.
-
#database ⇒ Object
Returns the value of attribute database.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#name ⇒ Object
Returns the value of attribute name.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
-
#relation_id ⇒ Object
Returns the value of attribute relation_id.
-
#release ⇒ Object
Returns the value of attribute release.
-
#release_digest ⇒ Object
Returns the value of attribute release_digest.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
Instance Method Summary collapse
-
#initialize(json) ⇒ ResolvedQuerySource
constructor
A new instance of ResolvedQuerySource.
Constructor Details
#initialize(json) ⇒ ResolvedQuerySource
Returns a new instance of ResolvedQuerySource.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 37 def initialize(json) super() hash = self.class.normalize(json) @byte_count = hash[:byte_count] @database = hash[:database] @kind = hash[:kind] @name = hash[:name] @relation = hash[:relation] @relation_digest = hash[:relation_digest] @relation_id = hash[:relation_id] @release = hash[:release] @release_digest = hash[:release_digest] @row_count = hash[:row_count] @schema_hash = hash[:schema_hash] @schema_version = hash[:schema_version] end |
Instance Attribute Details
#byte_count ⇒ Object
Returns the value of attribute byte_count.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def byte_count @byte_count end |
#database ⇒ Object
Returns the value of attribute database.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def database @database end |
#kind ⇒ Object
Returns the value of attribute kind.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def kind @kind end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def name @name end |
#relation ⇒ Object
Returns the value of attribute relation.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def relation @relation end |
#relation_digest ⇒ Object
Returns the value of attribute relation_digest.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def relation_digest @relation_digest end |
#relation_id ⇒ Object
Returns the value of attribute relation_id.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def relation_id @relation_id end |
#release ⇒ Object
Returns the value of attribute release.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def release @release end |
#release_digest ⇒ Object
Returns the value of attribute release_digest.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def release_digest @release_digest end |
#row_count ⇒ Object
Returns the value of attribute row_count.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def row_count @row_count end |
#schema_hash ⇒ Object
Returns the value of attribute schema_hash.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def schema_hash @schema_hash end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
23 24 25 |
# File 'lib/rafflesia/query/resolved_query_source.rb', line 23 def schema_version @schema_version end |