Sha256: 4cf95f01c7ed59101ef3c034de57e67f6021f2aee4a7ead4fd86d8df53694e7f

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

module Connfu
  module Provisioning
    ##
    # This class defines a whitelist user (whitelist item)
    class WhitelistUser < Struct.new(:name, :phone)

      ##
      # Creates a WhitelistUser object using the raw data from the provisioning API
      # ==== Parameters
      # * +data+ raw data retrieved using the connFu API
      def self.unmarshal(data)
        WhitelistUser.new(*data.values)
      end

    end
    
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
connfu-client-0.1.6 lib/connfu/provisioning/whitelist_user.rb
connfu-client-0.1.5 lib/connfu/provisioning/whitelist_user.rb
connfu-client-0.1.4 lib/connfu/provisioning/whitelist_user.rb
connfu-client-0.1.3 lib/connfu/provisioning/whitelist_user.rb