Class: Whiskey::Server::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/whiskey/server/action.rb

Direct Known Subclasses

Action

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Action

Returns a new instance of Action.



13
14
15
# File 'lib/whiskey/server/action.rb', line 13

def initialize(*args)
  raise "Not yet implemented"
end

Class Method Details

.to_verbObject



4
5
6
7
8
9
10
11
# File 'lib/whiskey/server/action.rb', line 4

def self.to_verb
  case name.demodulize
    when "ListAction" then "PULL"
    when "CreateAction" then "PUSH"
    when "ShowAction" then "PULL"
    when "UpdateAction" then "PUSH"
  end
end

Instance Method Details

#to_hashObject



17
18
19
# File 'lib/whiskey/server/action.rb', line 17

def to_hash
  raise "Not yet implemented"
end