Class: Imessage::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/imessage/parser.rb

Class Method Summary collapse

Class Method Details

.parse(options) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/imessage/parser.rb', line 7

def parse(options)
  OpenStruct.new.tap do |args|
    args.contacts = []
    args.text = nil
    args.attachment = nil
    args.verbose = false

    opt_parser(args).parse!(options)
  end
end