Module: Chimps::Commands

Included in:
CLI
Defined in:
lib/chimps-cli/commands.rb,
lib/chimps-cli/commands/me.rb,
lib/chimps-cli/commands/get.rb,
lib/chimps-cli/commands/put.rb,
lib/chimps-cli/commands/help.rb,
lib/chimps-cli/commands/list.rb,
lib/chimps-cli/commands/post.rb,
lib/chimps-cli/commands/show.rb,
lib/chimps-cli/commands/test.rb,
lib/chimps-cli/commands/query.rb,
lib/chimps-cli/commands/create.rb,
lib/chimps-cli/commands/delete.rb,
lib/chimps-cli/commands/search.rb,
lib/chimps-cli/commands/update.rb,
lib/chimps-cli/commands/upload.rb,
lib/chimps-cli/commands/destroy.rb,
lib/chimps-cli/commands/download.rb

Overview

A namespace to hold the various commands Chimps defines.

Defined Under Namespace

Modules: ClassMethods Classes: Create, Delete, Destroy, Download, Get, Help, List, Me, Post, Put, Query, Search, Show, Test, Update, Upload

Class Method Summary collapse

Class Method Details

.class_for(name) ⇒ Object



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

def self.class_for name
  self.instance_eval(name.to_s.capitalize)
end

.included(obj) ⇒ Object



12
13
14
# File 'lib/chimps-cli/commands.rb', line 12

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