Module: Chimps::Utils::UsesParamValueData

Included in:
Commands::Create, Commands::Post, Commands::Put, Commands::Query, Commands::Update
Defined in:
lib/chimps-cli/utils/uses_param_value_data.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



8
9
10
# File 'lib/chimps-cli/utils/uses_param_value_data.rb', line 8

def self.included klass
  klass.extend(ClassMethods)
end

Instance Method Details

#dataObject



21
22
23
# File 'lib/chimps-cli/utils/uses_param_value_data.rb', line 21

def data
  @data ||= merge_all(*(data_from_stdin + data_from_file + data_from_command_line)) || {}
end