Class: Rafflesia::SimulationCoordinateBounds

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/simulations/simulation_coordinate_bounds.rb

Constant Summary collapse

HASH_ATTRS =
{
  max_x_angstrom: :max_x_angstrom,
  max_y_angstrom: :max_y_angstrom,
  max_z_angstrom: :max_z_angstrom,
  min_x_angstrom: :min_x_angstrom,
  min_y_angstrom: :min_y_angstrom,
  min_z_angstrom: :min_z_angstrom
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SimulationCoordinateBounds

Returns a new instance of SimulationCoordinateBounds.



25
26
27
28
29
30
31
32
33
34
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 25

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @max_x_angstrom = hash[:max_x_angstrom]
  @max_y_angstrom = hash[:max_y_angstrom]
  @max_z_angstrom = hash[:max_z_angstrom]
  @min_x_angstrom = hash[:min_x_angstrom]
  @min_y_angstrom = hash[:min_y_angstrom]
  @min_z_angstrom = hash[:min_z_angstrom]
end

Instance Attribute Details

#max_x_angstromObject

Returns the value of attribute max_x_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def max_x_angstrom
  @max_x_angstrom
end

#max_y_angstromObject

Returns the value of attribute max_y_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def max_y_angstrom
  @max_y_angstrom
end

#max_z_angstromObject

Returns the value of attribute max_z_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def max_z_angstrom
  @max_z_angstrom
end

#min_x_angstromObject

Returns the value of attribute min_x_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def min_x_angstrom
  @min_x_angstrom
end

#min_y_angstromObject

Returns the value of attribute min_y_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def min_y_angstrom
  @min_y_angstrom
end

#min_z_angstromObject

Returns the value of attribute min_z_angstrom.



17
18
19
# File 'lib/rafflesia/simulations/simulation_coordinate_bounds.rb', line 17

def min_z_angstrom
  @min_z_angstrom
end