Class: Ppl::Command::Url

Inherits:
Attribute show all
Defined in:
lib/ppl/command/url.rb

Instance Attribute Summary

Attributes inherited from Attribute

#attribute, #list_format, #show_format

Attributes inherited from Application::Command

#storage

Instance Method Summary collapse

Methods inherited from Attribute

#execute

Methods inherited from Application::Command

add_property, #execute

Constructor Details

#initializeUrl

Returns a new instance of Url.



6
7
8
# File 'lib/ppl/command/url.rb', line 6

def initialize
  @attribute = :urls
end

Instance Method Details

#options(parser, options) ⇒ Object



10
11
12
13
14
15
# File 'lib/ppl/command/url.rb', line 10

def options(parser, options)
  parser.banner = "usage: ppl url <contact> [<url>]"
  parser.on("-d", "--delete", "delete url") do
    options[:delete] = true
  end
end