Class: Dsx::Dml::Operation

Inherits:
Object
  • Object
show all
Defined in:
lib/dsx/operation.rb

Instance Method Summary collapse

Constructor Details

#initialize(details, writer_options = false) ⇒ Operation

Returns a new instance of Operation.



12
13
14
15
16
# File 'lib/dsx/operation.rb', line 12

def initialize(details, writer_options = false)
  initialize_details(details)
  initialize_command(writer_options)
  
end

Instance Method Details

#access_levelsObject



33
34
35
# File 'lib/dsx/operation.rb', line 33

def access_levels
  return AccessLevelOp.new(self, @changeset)
end

#access_levels=(args = false) ⇒ Object



37
38
39
# File 'lib/dsx/operation.rb', line 37

def access_levels=(args=false)
  return self
end

#changesetObject



55
56
57
# File 'lib/dsx/operation.rb', line 55

def changeset
  @changeset
end

#curl(writer = false) ⇒ Object



67
68
69
# File 'lib/dsx/operation.rb', line 67

def curl(writer=false)
  @changeset.curl(writer)
end

#identifierObject



51
52
53
# File 'lib/dsx/operation.rb', line 51

def identifier
  @identifier
end

#last_typeObject



22
23
24
# File 'lib/dsx/operation.rb', line 22

def last_type
  @type
end

#last_type=(type) ⇒ Object



18
19
20
# File 'lib/dsx/operation.rb', line 18

def last_type=(type)
  @type = type
end

#linking_level=(level) ⇒ Object



41
42
43
44
45
# File 'lib/dsx/operation.rb', line 41

def linking_level=(level)
  table = @changeset.table(:Cards)
  table.write({Code: @identifier, Loc: @location_num, OLL: level})
  self
end

#net_sftp(writer = false) ⇒ Object



63
64
65
# File 'lib/dsx/operation.rb', line 63

def net_sftp(writer=false)
  @changeset.net_sftp(writer)
end

#reset_cardsObject



26
27
28
29
30
31
# File 'lib/dsx/operation.rb', line 26

def reset_cards
  table = @changeset.table(:Names)
  table.dc
  table.write
  self
end

#tmp_access_levelsObject



47
48
49
# File 'lib/dsx/operation.rb', line 47

def tmp_access_levels
  return TmpAccessLevelOp.new(self, @changeset)
end

#to_sObject



59
60
61
# File 'lib/dsx/operation.rb', line 59

def to_s
  @changeset.to_s
end