Class: Rafflesia::FoldCatalogSearchRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  catalog: :catalog,
  limit: :limit,
  query_id: :query_id,
  store_root: :store_root
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ FoldCatalogSearchRequest

Returns a new instance of FoldCatalogSearchRequest.



21
22
23
24
25
26
27
28
# File 'lib/rafflesia/proteins/fold_catalog_search_request.rb', line 21

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @catalog = hash[:catalog]
  @limit = hash[:limit]
  @query_id = hash[:query_id]
  @store_root = hash[:store_root]
end

Instance Attribute Details

#catalogObject

Returns the value of attribute catalog.



15
16
17
# File 'lib/rafflesia/proteins/fold_catalog_search_request.rb', line 15

def catalog
  @catalog
end

#limitObject

Returns the value of attribute limit.



15
16
17
# File 'lib/rafflesia/proteins/fold_catalog_search_request.rb', line 15

def limit
  @limit
end

#query_idObject

Returns the value of attribute query_id.



15
16
17
# File 'lib/rafflesia/proteins/fold_catalog_search_request.rb', line 15

def query_id
  @query_id
end

#store_rootObject

Returns the value of attribute store_root.



15
16
17
# File 'lib/rafflesia/proteins/fold_catalog_search_request.rb', line 15

def store_root
  @store_root
end