Class: Bunto::Commands::UnpublishArgParser
- Inherits:
-
Bunto::Compose::MovementArgParser
- Object
- Bunto::Compose::MovementArgParser
- Bunto::Commands::UnpublishArgParser
- Defined in:
- lib/bunto/commands/unpublish.rb
Instance Attribute Summary
Attributes inherited from Bunto::Compose::MovementArgParser
Instance Method Summary collapse
Methods inherited from Bunto::Compose::MovementArgParser
#initialize, #path, #validate!
Constructor Details
This class inherits a constructor from Bunto::Compose::MovementArgParser
Instance Method Details
#name ⇒ Object
32 33 34 |
# File 'lib/bunto/commands/unpublish.rb', line 32 def name File.basename(path).sub /\d{4}-\d{2}-\d{2}-/, '' end |
#resource_type ⇒ Object
28 29 30 |
# File 'lib/bunto/commands/unpublish.rb', line 28 def resource_type 'post' end |