class SML::GetList::Request

Attributes

client_id[RW]
list_name[RW]
password[RW]
server_id[RW]
username[RW]

Public Class Methods

construct(array_rep) click to toggle source
# File lib/ruby-sml/sml-getlist.rb, line 20
def self.construct(array_rep)
  return nil if array_rep.nil?
  client_id = array_rep.shift
  server_id = array_rep.shift
  username = array_rep.shift
  password = array_rep.shift
  list_name = array_rep.shift

  return SML::GetList::Request.new(client_id, server_id, username, password, list_name)
end
new(client_id, server_id, username, password, list_name) click to toggle source
# File lib/ruby-sml/sml-getlist.rb, line 12
def initialize(client_id, server_id, username, password, list_name)
  @client_id = client_id
  @server_id = server_id
  @username = username
  @password = password
  @list_name = list_name
end
pconstrut(o={}) click to toggle source
# File lib/ruby-sml/sml-getlist.rb, line 31
def self.pconstrut(o={})
  return SML::GetList::Request.new(o[:client_id], o[:server_id], o[:username], o[:password], o[:list_name])
end

Public Instance Methods

to_a() click to toggle source
# File lib/ruby-sml/sml-getlist.rb, line 35
def to_a
  return [] << client_id << server_id << username << password << list_name
end