Class: Symgate::Wordlist::Info

Inherits:
Type
  • Object
show all
Defined in:
lib/symgate/wordlist/info.rb

Overview

contains information about a wordlist

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#==, hash_value_with_optional_namespace, #initialize

Constructor Details

This class inherits a constructor from Symgate::Type

Class Method Details

.from_soap(hash) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/symgate/wordlist/info.rb', line 7

def self.from_soap(hash)
  Symgate::Wordlist::Info.new(
    name: hash_value_with_optional_namespace(:wl, :name, hash),
    context: hash_value_with_optional_namespace(:wl, :context, hash),
    uuid: hash_value_with_optional_namespace(:wl, :uuid, hash),
    engine: hash_value_with_optional_namespace(:wl, :engine, hash),
    scope: hash_value_with_optional_namespace(:wl, :scope, hash),
    readonly: hash_value_with_optional_namespace(:wl, :readonly, hash),
    entry_count: hash_value_with_optional_namespace(:wl, :entrycount, hash).to_i,
    last_change: hash_value_with_optional_namespace(:wl, :lastchange, hash)
  )
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/symgate/wordlist/info.rb', line 20

def to_s
  "{#{@context} Wordlist: \"#{@name}\"/#{@uuid} (#{@engine}, #{@entry_count} entries)}"
end