Class: Rafflesia::StructureAlignMatrixRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  allow_network: :allow_network,
  database: :database,
  multimer_mode: :multimer_mode,
  output_format: :output_format,
  output_relation: :output_relation,
  partition_by: :partition_by,
  preview_limit: :preview_limit,
  relation: :relation,
  release: :release,
  sort_by: :sort_by,
  structure_ids: :structure_ids,
  terminus_mode: :terminus_mode
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ StructureAlignMatrixRequest

Returns a new instance of StructureAlignMatrixRequest.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @allow_network = hash[:allow_network]
  @database = hash[:database]
  @multimer_mode = hash[:multimer_mode]
  @output_format = hash[:output_format]
  @output_relation = hash[:output_relation]
  @partition_by = (hash[:partition_by] || [])
  @preview_limit = hash[:preview_limit]
  @relation = hash[:relation]
  @release = hash[:release]
  @sort_by = (hash[:sort_by] || [])
  @structure_ids = (hash[:structure_ids] || [])
  @terminus_mode = hash[:terminus_mode]
end

Instance Attribute Details

#allow_networkObject

Returns the value of attribute allow_network.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def allow_network
  @allow_network
end

#databaseObject

Returns the value of attribute database.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def database
  @database
end

#multimer_modeObject

Returns the value of attribute multimer_mode.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def multimer_mode
  @multimer_mode
end

#output_formatObject

Returns the value of attribute output_format.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def output_format
  @output_format
end

#output_relationObject

Returns the value of attribute output_relation.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def output_relation
  @output_relation
end

#partition_byObject

Returns the value of attribute partition_by.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def partition_by
  @partition_by
end

#preview_limitObject

Returns the value of attribute preview_limit.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def preview_limit
  @preview_limit
end

#relationObject

Returns the value of attribute relation.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def release
  @release
end

#sort_byObject

Returns the value of attribute sort_by.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def sort_by
  @sort_by
end

#structure_idsObject

Returns the value of attribute structure_ids.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def structure_ids
  @structure_ids
end

#terminus_modeObject

Returns the value of attribute terminus_mode.



23
24
25
# File 'lib/rafflesia/proteins/structure_align_matrix_request.rb', line 23

def terminus_mode
  @terminus_mode
end