Class: Connfu::Provisioning::WhitelistUser

Inherits:
Struct
  • Object
show all
Defined in:
lib/connfu/provisioning/whitelist_user.rb

Overview

This class defines a whitelist user (whitelist item)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



5
6
7
# File 'lib/connfu/provisioning/whitelist_user.rb', line 5

def name
  @name
end

#phoneObject

Returns the value of attribute phone

Returns:

  • (Object)

    the current value of 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

  • data raw 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