Module: PushBuilder

Defined in:
lib/push_builder.rb,
lib/push_builder/aps.rb,
lib/push_builder/payload.rb,
lib/push_builder/version.rb,
lib/push_builder/compiler.rb,
lib/push_builder/string_cropper.rb

Defined Under Namespace

Classes: APS, Compiler, Payload, StringCropper

Constant Summary collapse

TypeError =
Class.new(StandardError)
VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.build(args = {}) ⇒ Object



10
11
12
13
14
# File 'lib/push_builder.rb', line 10

def self.build(args={})
  Payload.new.tap do |payload|
    args.each { |k, v| payload.aps.send("#{k}=", v) }
  end
end