Class: Rafflesia::StructurePrepareRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  encoding: :encoding,
  structure_id: :structure_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ StructurePrepareRequest

Returns a new instance of StructurePrepareRequest.



17
18
19
20
21
22
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 17

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @encoding = hash[:encoding]
  @structure_id = hash[:structure_id]
end

Instance Attribute Details

#encodingObject

Returns the value of attribute encoding.



13
14
15
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 13

def encoding
  @encoding
end

#structure_idObject

Returns the value of attribute structure_id.



13
14
15
# File 'lib/rafflesia/proteins/structure_prepare_request.rb', line 13

def structure_id
  @structure_id
end