class SML::GetProfileList::Request

Attributes

begin_time[RW]
das_details[RW]
end_time[RW]
object_list[RW]
parameter_treepath[RW]
password[RW]
server_id[RW]
username[RW]
with_raw_data[RW]

Public Class Methods

construct(array_rep) click to toggle source
# File lib/ruby-sml/sml-getprofilelist.rb, line 24
def self.construct(array_rep)
  return nil if array_rep.nil?
  server_id = array_rep.shift
  username = array_rep.shift
  password = array_rep.shift
  with_raw_data = array_rep.shift
  array_rep.shift unless with_raw_data.nil?
  begin_time = SML::Time.construct(array_rep.shift)
  end_time = SML::Time.construct(array_rep.shift)
  parameter_treepath = SML::Treepath.construct(array_rep.shift)
  object_list = array_rep.shift
  das_details = SML::Tree.construct(array_rep.shift)

  return nil if parameter_treepath.nil?
  return SML::GetProfileList::Request.new(server_id, username, password, with_raw_data, begin_time, end_time, parameter_treepath, object_list, das_details)
end
new(server_id, username, password, with_raw_data, begin_time, end_time, parameter_treepath, object_list, das_details) click to toggle source
# File lib/ruby-sml/sml-getprofilelist.rb, line 12
def initialize(server_id, username, password, with_raw_data, begin_time, end_time, parameter_treepath, object_list, das_details)
  @server_id = server_id
  @username = username
  @password = password
  @with_raw_data = with_raw_data
  @begin_time = begin_time
  @end_time = end_time
  @parameter_treepath = parameter_treepath
  @object_list = object_list
  @das_details = das_details
end

Public Instance Methods

to_a() click to toggle source
# File lib/ruby-sml/sml-getprofilelist.rb, line 40
def to_a
  result = [] << server_id << username << password << with_raw_data
  result << :bool unless with_raw_data.nil?
  
  return result << begin_time.to_a << end_time.to_a << parameter_treepath.to_a << object_list << das_details.to_a
end