Class: Dsx::Dml::Operation
- Inherits:
-
Object
- Object
- Dsx::Dml::Operation
- Defined in:
- lib/dsx/operation.rb
Instance Method Summary collapse
- #access_levels ⇒ Object
- #access_levels=(args = false) ⇒ Object
- #changeset ⇒ Object
- #curl(writer = false) ⇒ Object
- #identifier ⇒ Object
-
#initialize(details, writer_options = false) ⇒ Operation
constructor
A new instance of Operation.
- #last_type ⇒ Object
- #last_type=(type) ⇒ Object
- #linking_level=(level) ⇒ Object
- #net_sftp(writer = false) ⇒ Object
- #reset_cards ⇒ Object
- #tmp_access_levels ⇒ Object
- #to_s ⇒ Object
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, = false) initialize_details(details) initialize_command() end |
Instance Method Details
#access_levels ⇒ Object
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 |
#changeset ⇒ Object
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 |
#identifier ⇒ Object
51 52 53 |
# File 'lib/dsx/operation.rb', line 51 def identifier @identifier end |
#last_type ⇒ Object
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_cards ⇒ Object
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_levels ⇒ Object
47 48 49 |
# File 'lib/dsx/operation.rb', line 47 def tmp_access_levels return TmpAccessLevelOp.new(self, @changeset) end |
#to_s ⇒ Object
59 60 61 |
# File 'lib/dsx/operation.rb', line 59 def to_s @changeset.to_s end |