Class: Rafflesia::MoleculeImportRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/molecules/molecule_import_request.rb

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ MoleculeImportRequest

Returns a new instance of MoleculeImportRequest.



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

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

Instance Attribute Details

#pathObject

Returns the value of attribute path.



13
14
15
# File 'lib/rafflesia/molecules/molecule_import_request.rb', line 13

def path
  @path
end

#source_idObject

Returns the value of attribute source_id.



13
14
15
# File 'lib/rafflesia/molecules/molecule_import_request.rb', line 13

def source_id
  @source_id
end