Class: Rafflesia::DockQData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/proteins/dock_q_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  backend: :backend,
  backend_binary_path: :backend_binary_path,
  backend_version: :backend_version,
  dockq: :dockq,
  fnat: :fnat,
  irmsd_angstrom: :irmsd_angstrom,
  is_backend_available: :is_backend_available,
  is_measurement_available: :is_measurement_available,
  lrmsd_angstrom: :lrmsd_angstrom,
  method: :method,
  query_structure_id: :query_structure_id,
  query_structure_object: :query_structure_object,
  target_structure_id: :target_structure_id,
  target_structure_object: :target_structure_object
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DockQData

Returns a new instance of DockQData.



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 41

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @backend = hash[:backend]
  @backend_binary_path = hash[:backend_binary_path]
  @backend_version = hash[:backend_version]
  @dockq = hash[:dockq]
  @fnat = hash[:fnat]
  @irmsd_angstrom = hash[:irmsd_angstrom]
  @is_backend_available = hash[:is_backend_available]
  @is_measurement_available = hash[:is_measurement_available]
  @lrmsd_angstrom = hash[:lrmsd_angstrom]
  @method = hash[:method]
  @query_structure_id = hash[:query_structure_id]
  @query_structure_object = hash[:query_structure_object]
  @target_structure_id = hash[:target_structure_id]
  @target_structure_object = hash[:target_structure_object]
end

Instance Attribute Details

#backendObject

Returns the value of attribute backend.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def backend
  @backend
end

#backend_binary_pathObject

Returns the value of attribute backend_binary_path.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def backend_binary_path
  @backend_binary_path
end

#backend_versionObject

Returns the value of attribute backend_version.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def backend_version
  @backend_version
end

#dockqObject

Returns the value of attribute dockq.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def dockq
  @dockq
end

#fnatObject

Returns the value of attribute fnat.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def fnat
  @fnat
end

#irmsd_angstromObject

Returns the value of attribute irmsd_angstrom.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def irmsd_angstrom
  @irmsd_angstrom
end

#is_backend_availableObject

Returns the value of attribute is_backend_available.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def is_backend_available
  @is_backend_available
end

#is_measurement_availableObject

Returns the value of attribute is_measurement_available.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def is_measurement_available
  @is_measurement_available
end

#lrmsd_angstromObject

Returns the value of attribute lrmsd_angstrom.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def lrmsd_angstrom
  @lrmsd_angstrom
end

#methodObject

Returns the value of attribute method.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def method
  @method
end

#query_structure_idObject

Returns the value of attribute query_structure_id.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def query_structure_id
  @query_structure_id
end

#query_structure_objectObject

Returns the value of attribute query_structure_object.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def query_structure_object
  @query_structure_object
end

#target_structure_idObject

Returns the value of attribute target_structure_id.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def target_structure_id
  @target_structure_id
end

#target_structure_objectObject

Returns the value of attribute target_structure_object.



25
26
27
# File 'lib/rafflesia/proteins/dock_q_data.rb', line 25

def target_structure_object
  @target_structure_object
end