Class: Connfu::Provisioning::WhitelistUser
- Inherits:
-
Struct
- Object
- Struct
- Connfu::Provisioning::WhitelistUser
- Defined in:
- lib/connfu/provisioning/whitelist_user.rb
Overview
This class defines a whitelist user (whitelist item)
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#phone ⇒ Object
Returns the value of attribute phone.
Class Method Summary collapse
-
.unmarshal(data) ⇒ Object
Creates a WhitelistUser object using the raw data from the provisioning API ==== Parameters *
dataraw data retrieved using the connFu API.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/connfu/provisioning/whitelist_user.rb', line 5 def name @name end |
#phone ⇒ Object
Returns the value of attribute phone
5 6 7 |
# File 'lib/connfu/provisioning/whitelist_user.rb', line 5 def phone @phone end |
Class Method Details
.unmarshal(data) ⇒ Object
Creates a WhitelistUser object using the raw data from the provisioning API
Parameters
-
dataraw data retrieved using the connFu API
11 12 13 |
# File 'lib/connfu/provisioning/whitelist_user.rb', line 11 def self.unmarshal(data) WhitelistUser.new(*data.values) end |