Class: Rafflesia::SequenceImportRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/sequences/sequence_import_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  path: :path,
  target_id: :target_id
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ SequenceImportRequest

Returns a new instance of SequenceImportRequest.



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

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

Instance Attribute Details

#pathObject

Returns the value of attribute path.



13
14
15
# File 'lib/rafflesia/sequences/sequence_import_request.rb', line 13

def path
  @path
end

#target_idObject

Returns the value of attribute target_id.



13
14
15
# File 'lib/rafflesia/sequences/sequence_import_request.rb', line 13

def target_id
  @target_id
end