Sha256: 2cefd10d7b62ed393dc85638ce710515cbc8368605e4f3193423c979b6a367db

Contents?: true

Size: 383 Bytes

Versions: 9

Compression:

Stored size: 383 Bytes

Contents

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

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

  def initialize
    @attribute = :phone_numbers
  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

9 entries across 9 versions & 1 rubygems

Version Path
ppl-1.20.0 lib/ppl/command/phone.rb
ppl-1.19.0 lib/ppl/command/phone.rb
ppl-1.18.0 lib/ppl/command/phone.rb
ppl-1.17.2 lib/ppl/command/phone.rb
ppl-1.17.1 lib/ppl/command/phone.rb
ppl-1.17.0 lib/ppl/command/phone.rb
ppl-1.16.0 lib/ppl/command/phone.rb
ppl-1.15.1 lib/ppl/command/phone.rb
ppl-1.15.0 lib/ppl/command/phone.rb