class SML::GetProcParameter::Request

Attributes

attribute[RW]
parameter_treepath[RW]
password[RW]
server_id[RW]
username[RW]

Public Class Methods

construct(array_rep) click to toggle source
# File lib/ruby-sml/sml-getprocparameter.rb, line 19
def self.construct(array_rep)
  return nil if array_rep.nil?
  server_id = array_rep.shift
  username = array_rep.shift
  password = array_rep.shift
  parameter_treepath = SML::Treepath.construct(array_rep.shift)
  attribute = array_rep.shift

  return nil if parameter_treepath.nil?
  return SML::GetProcParameter::Request.new(server_id, username, password, parameter_treepath, attribute)
end
new(server_id, username, password, parameter_treepath, attribute) click to toggle source
# File lib/ruby-sml/sml-getprocparameter.rb, line 11
def initialize(server_id, username, password, parameter_treepath, attribute)
  @server_id = server_id
  @username = username
  @password = password
  @parameter_treepath = parameter_treepath
  @attribute = attribute
end

Public Instance Methods

to_a() click to toggle source
# File lib/ruby-sml/sml-getprocparameter.rb, line 30
def to_a
  return [] << server_id << username << password << parameter_treepath.to_a << attribute
end