Module: Pushwoosh::Configurable

Extended by:
Forwardable
Included in:
Pushwoosh
Defined in:
lib/pushwoosh/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



8
9
10
# File 'lib/pushwoosh/configurable.rb', line 8

def application
  @application
end

#authObject

Returns the value of attribute auth.



8
9
10
# File 'lib/pushwoosh/configurable.rb', line 8

def auth
  @auth
end

Class Method Details

.keysObject



14
15
16
17
18
19
# File 'lib/pushwoosh/configurable.rb', line 14

def keys
  @keys ||= [
    :application,
    :auth,
  ]
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



23
24
25
26
27
# File 'lib/pushwoosh/configurable.rb', line 23

def configure
  yield self
  validate_credential_type!
  self
end