Class: CmSms::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/cm_sms/configuration.rb

Defined Under Namespace

Classes: EndpointMissing, PathMissing, ProductTokenMissing

Constant Summary collapse

ENDPOINT =
'https://sgw01.cm.nl'
PATH =
'/gateway.ashx'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#endpointObject

Returns the value of attribute endpoint.



10
11
12
# File 'lib/cm_sms/configuration.rb', line 10

def endpoint
  @endpoint
end

#fromObject

Returns the value of attribute from.



10
11
12
# File 'lib/cm_sms/configuration.rb', line 10

def from
  @from
end

#pathObject

Returns the value of attribute path.



10
11
12
# File 'lib/cm_sms/configuration.rb', line 10

def path
  @path
end

#product_tokenObject

Returns the value of attribute product_token.



10
11
12
# File 'lib/cm_sms/configuration.rb', line 10

def product_token
  @product_token
end

#toObject

Returns the value of attribute to.



10
11
12
# File 'lib/cm_sms/configuration.rb', line 10

def to
  @to
end

Instance Method Details

#defaultsObject



22
23
24
# File 'lib/cm_sms/configuration.rb', line 22

def defaults
  @defaults ||= { from: from, to: to }
end