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
- .android_arn ⇒ Object
- .android_arn=(android_arn) ⇒ Object
- .config ⇒ Object
- .ios_arn ⇒ Object
- .ios_arn=(ios_arn) ⇒ Object
- .ios_sandbox ⇒ Object
- .ios_sandbox=(ios_sandbox) ⇒ Object
- .region ⇒ Object
- .region=(region) ⇒ Object
- .setup {|_self| ... } ⇒ Object
Class Method Details
.android_arn ⇒ Object
93 94 95 |
# File 'lib/pushme/aws.rb', line 93 def android_arn @config[:arn][:android] end |
.android_arn=(android_arn) ⇒ Object
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 |
.config ⇒ Object
89 90 91 |
# File 'lib/pushme/aws.rb', line 89 def config @config end |
.ios_arn ⇒ Object
97 98 99 |
# File 'lib/pushme/aws.rb', line 97 def ios_arn @config[:arn][:ios] end |
.ios_arn=(ios_arn) ⇒ Object
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_sandbox ⇒ Object
101 102 103 |
# File 'lib/pushme/aws.rb', line 101 def ios_sandbox @config[:ios_sandbox] || false end |
.ios_sandbox=(ios_sandbox) ⇒ Object
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 |
.region ⇒ Object
105 106 107 |
# File 'lib/pushme/aws.rb', line 105 def region @config[:region] end |
.region=(region) ⇒ Object
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
61 62 63 |
# File 'lib/pushme/aws.rb', line 61 def setup yield self end |