Class: Rafflesia::DatabaseJoinCertificationRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/database_join_certifications/database_join_certification_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  budget: :budget,
  dataset_name: :dataset_name,
  dataset_version: :dataset_version,
  from_database: :from_database,
  from_release: :from_release,
  ontology_digest: :ontology_digest,
  safety: :safety,
  to_database: :to_database,
  to_release: :to_release
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatabaseJoinCertificationRequest

Returns a new instance of DatabaseJoinCertificationRequest.



31
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 31

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @budget = hash[:budget] ? Rafflesia::QueryBudget.new(hash[:budget]) : nil
  @dataset_name = hash[:dataset_name]
  @dataset_version = hash[:dataset_version]
  @from_database = hash[:from_database]
  @from_release = hash[:from_release]
  @ontology_digest = hash[:ontology_digest]
  @safety = hash[:safety]
  @to_database = hash[:to_database]
  @to_release = hash[:to_release]
end

Instance Attribute Details

#budgetObject

Returns the value of attribute budget.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def budget
  @budget
end

#dataset_nameObject

Returns the value of attribute dataset_name.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def dataset_name
  @dataset_name
end

#dataset_versionObject

Returns the value of attribute dataset_version.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def dataset_version
  @dataset_version
end

#from_databaseObject

Returns the value of attribute from_database.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def from_database
  @from_database
end

#from_releaseObject

Returns the value of attribute from_release.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def from_release
  @from_release
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def ontology_digest
  @ontology_digest
end

#safetyObject

Returns the value of attribute safety.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def safety
  @safety
end

#to_databaseObject

Returns the value of attribute to_database.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def to_database
  @to_database
end

#to_releaseObject

Returns the value of attribute to_release.



20
21
22
# File 'lib/rafflesia/database_join_certifications/database_join_certification_request.rb', line 20

def to_release
  @to_release
end