Class: Bunto::Commands::UnpublishArgParser

Inherits:
Bunto::Compose::MovementArgParser show all
Defined in:
lib/bunto/commands/unpublish.rb

Instance Attribute Summary

Attributes inherited from Bunto::Compose::MovementArgParser

#args, #options

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

#nameObject



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_typeObject



28
29
30
# File 'lib/bunto/commands/unpublish.rb', line 28

def resource_type
  'post'
end