Class: Rafflesia::PocketFeaturesRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  database: :database,
  output_format: :output_format,
  output_relation: :output_relation,
  partition_by: :partition_by,
  pocket_id: :pocket_id,
  preview_limit: :preview_limit,
  relation: :relation,
  release: :release,
  sort_by: :sort_by
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ PocketFeaturesRequest

Returns a new instance of PocketFeaturesRequest.



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

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

Instance Attribute Details

#databaseObject

Returns the value of attribute database.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def database
  @database
end

#output_formatObject

Returns the value of attribute output_format.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def output_format
  @output_format
end

#output_relationObject

Returns the value of attribute output_relation.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def output_relation
  @output_relation
end

#partition_byObject

Returns the value of attribute partition_by.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def partition_by
  @partition_by
end

#pocket_idObject

Returns the value of attribute pocket_id.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def pocket_id
  @pocket_id
end

#preview_limitObject

Returns the value of attribute preview_limit.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def preview_limit
  @preview_limit
end

#relationObject

Returns the value of attribute relation.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def relation
  @relation
end

#releaseObject

Returns the value of attribute release.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def release
  @release
end

#sort_byObject

Returns the value of attribute sort_by.



20
21
22
# File 'lib/rafflesia/proteins/pocket_features_request.rb', line 20

def sort_by
  @sort_by
end