Module: Pushme::Aws

Defined in:
lib/pushme/aws.rb,
lib/pushme/aws/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.android_arnObject



93
94
95
# File 'lib/pushme/aws.rb', line 93

def android_arn
  @config[:arn][:android]
end

.android_arn=(android_arn) ⇒ Object

Raises:

  • (ArgumentError)


65
66
67
68
69
# File 'lib/pushme/aws.rb', line 65

def android_arn=(android_arn)
  raise ArgumentError, 'Argument must be a string' unless android_arn.is_a?(String)

  @config[:arn][:android] = android_arn
end

.configObject



89
90
91
# File 'lib/pushme/aws.rb', line 89

def config
  @config
end

.ios_arnObject



97
98
99
# File 'lib/pushme/aws.rb', line 97

def ios_arn
  @config[:arn][:ios]
end

.ios_arn=(ios_arn) ⇒ Object

Raises:

  • (ArgumentError)


71
72
73
74
75
# File 'lib/pushme/aws.rb', line 71

def ios_arn=(ios_arn)
  raise ArgumentError, 'Argument must be a string' unless ios_arn.is_a?(String)

  @config[:arn][:ios] = ios_arn
end

.ios_sandboxObject



101
102
103
# File 'lib/pushme/aws.rb', line 101

def ios_sandbox
  @config[:ios_sandbox] || false
end

.ios_sandbox=(ios_sandbox) ⇒ Object

Raises:

  • (ArgumentError)


77
78
79
80
81
# File 'lib/pushme/aws.rb', line 77

def ios_sandbox=(ios_sandbox)
  raise ArgumentError, 'Argument must be a boolean' unless ios_sandbox.is_a?(TrueClass) || ios_sandbox.is_a?(FalseClass)

  @config[:ios_sandbox] = ios_sandbox
end

.regionObject



105
106
107
# File 'lib/pushme/aws.rb', line 105

def region
  @config[:region]
end

.region=(region) ⇒ Object

Raises:

  • (ArgumentError)


83
84
85
86
87
# File 'lib/pushme/aws.rb', line 83

def region=(region)
  raise ArgumentError, 'Argument must be a string' unless region.is_a?(String)

  @config[:region] = region
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Pushme::Aws)

    the object that the method was called on



61
62
63
# File 'lib/pushme/aws.rb', line 61

def setup
  yield self
end