Class: Phaxio::Resources::Ata::ProvisioningURLs

Inherits:
Object
  • Object
show all
Defined in:
lib/phaxio/resources/ata.rb

Overview

A set of provisioning URLs.

Constant Summary collapse

GRANDSTREAM =
'Grandstream'
OBI =
'OBi'
NETGEN =
'Netgen'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ ProvisioningURLs

Returns a new instance of ProvisioningURLs.



92
93
94
# File 'lib/phaxio/resources/ata.rb', line 92

def initialize data
  @urls = data
end

Instance Attribute Details

#urlsHash<String: String>

Returns The hash of provisioning URLs.

Returns:

  • (Hash<String: String>)

    The hash of provisioning URLs.



86
87
88
# File 'lib/phaxio/resources/ata.rb', line 86

def urls
  @urls
end

Instance Method Details

#grandstreamString

Returns The Grandstream provisioning url.

Returns:

  • (String)

    The Grandstream provisioning url.



97
98
99
# File 'lib/phaxio/resources/ata.rb', line 97

def grandstream
  self.urls.fetch(GRANDSTREAM)
end

#netgenString

Returns The Netgen provisioning url.

Returns:

  • (String)

    The Netgen provisioning url.



107
108
109
# File 'lib/phaxio/resources/ata.rb', line 107

def netgen
  self.urls.fetch(NETGEN)
end

#obiString

Returns The OBi provisioning url.

Returns:

  • (String)

    The OBi provisioning url.



102
103
104
# File 'lib/phaxio/resources/ata.rb', line 102

def obi
  self.urls.fetch(OBI)
end