Sha256: d0460b83d9f09bc74eee4c146bd96b95d69d1861b8be13443faa1c803909fbef

Contents?: true

Size: 977 Bytes

Versions: 40

Compression:

Stored size: 977 Bytes

Contents

#  frozen_string_literal: true

b = box({ id: :the_box })
b.data(:canyouwritethis)
b.rotate(33)
b.rotate(88)
b.rotate(99)
b.rotate(12)
b.rotate(6)
b.data
b.touch(true) do
  puts  b.history
  # b.data(:super)
  # b.data
  # box_data_write_history=b.history({ operation: :write, id: :the_box, particle: :data })
  # puts "get data write operation :  #{box_data_write_history}"
  # box_data_read_history=b.history({ operation: :read, id: :the_box, particle: :data })
  # puts "get data read operation :  #{box_data_read_history}"
end



# box_rotate_history=b.history({ operation: :write, id: :the_box, particle: :rotate })
# puts "get all all rotate write operation :  #{box_rotate_history}"
#
# # we check if an operation synced (that means saved on atome's server)
# puts "first rotate operation state  :  #{box_rotate_history[0]}"
#
# box_data_history=b.history({ operation: :write, id: :the_box, particle: :data })
# puts "get data write operation :  #{box_data_history}"
#

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
atome-0.5.7.6.0 vendor/assets/application/examples/history.rb
atome-0.5.7.5.9 vendor/assets/application/examples/history.rb
atome-0.5.7.5.4 vendor/assets/application/examples/history.rb
atome-0.5.7.5.3 vendor/assets/application/examples/history.rb
atome-0.5.7.5.1 vendor/assets/application/examples/history.rb
atome-0.5.7.4.8 vendor/assets/application/examples/history.rb
atome-0.5.7.4.7 vendor/assets/application/examples/history.rb
atome-0.5.7.4.6 vendor/assets/application/examples/history.rb
atome-0.5.7.4.3 vendor/assets/application/examples/history.rb
atome-0.5.7.4.2 vendor/assets/application/examples/history.rb
atome-0.5.7.3.9 vendor/assets/application/examples/history.rb
atome-0.5.7.3.6 vendor/assets/application/examples/history.rb
atome-0.5.7.3.5 vendor/assets/application/examples/history.rb
atome-0.5.7.3.3 vendor/assets/application/examples/history.rb
atome-0.5.7.3.2 vendor/assets/application/examples/history.rb
atome-0.5.7.3.1 vendor/assets/application/examples/history.rb
atome-0.5.7.3.0 vendor/assets/application/examples/history.rb
atome-0.5.7.1.8 vendor/assets/application/examples/history.rb
atome-0.5.7.1.7 vendor/assets/application/examples/history.rb
atome-0.5.7.1.0 vendor/assets/application/examples/history.rb