Module: Motr::Cargo::Package

Extended by:
ActiveSupport::Concern
Defined in:
lib/motr/cargo/package.rb,
lib/motr/cargo/package/mongoid.rb

Defined Under Namespace

Modules: Mongoid

Instance Method Summary collapse

Instance Method Details

#cargoObject



29
30
31
# File 'lib/motr/cargo/package.rb', line 29

def cargo
  @cargo
end

#cargo=(cargo_data) ⇒ Object

The cargo method handles “rendering” the particular package. This data should be defined in the cargo “show” action.



25
26
27
# File 'lib/motr/cargo/package.rb', line 25

def cargo=(cargo_data)
  @cargo
end