Sha256: 018fd3850db7a3bf84eec461c3c0549f52f45cb052bd083675e8615173c256f2

Contents?: true

Size: 504 Bytes

Versions: 6

Compression:

Stored size: 504 Bytes

Contents

class Ppl::Command::Phone < Ppl::Command::Attribute

  name        "phone"
  description "List, show or change phone numbers"

  def initialize
    @attribute   = :phone_numbers
    @show_format = Ppl::Format::Contact::PhoneNumber.new
    @list_format = Ppl::Format::AddressBook::PhoneNumbers.new
  end

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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ppl-1.14.1 lib/ppl/command/phone.rb
ppl-1.14.0 lib/ppl/command/phone.rb
ppl-1.13.0 lib/ppl/command/phone.rb
ppl-1.12.0 lib/ppl/command/phone.rb
ppl-1.11.0 lib/ppl/command/phone.rb
ppl-1.10.0 lib/ppl/command/phone.rb