Class: Whiskey::Server::Action
- Inherits:
-
Object
- Object
- Whiskey::Server::Action
- Defined in:
- lib/whiskey/server/action.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Action
constructor
A new instance of Action.
- #to_hash ⇒ Object
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_verb ⇒ Object
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_hash ⇒ Object
17 18 19 |
# File 'lib/whiskey/server/action.rb', line 17 def to_hash raise "Not yet implemented" end |