Class: Ellipses::Client::Meta::Lock

Inherits:
Struct
  • Object
show all
Defined in:
lib/ellipses/client/meta.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#directiveObject

Returns the value of attribute directive

Returns:

  • (Object)

    the current value of directive



39
40
41
# File 'lib/ellipses/client/meta.rb', line 39

def directive
  @directive
end

#insertionObject

Returns the value of attribute insertion

Returns:

  • (Object)

    the current value of insertion



39
40
41
# File 'lib/ellipses/client/meta.rb', line 39

def insertion
  @insertion
end

Class Method Details

.from_hash(hash) ⇒ Object



44
45
46
# File 'lib/ellipses/client/meta.rb', line 44

def self.from_hash(hash)
  new directive: hash[:directive], insertion: Insertion.from_hash(hash[:insertion])
end

Instance Method Details

#to_json(*args) ⇒ Object



40
41
42
# File 'lib/ellipses/client/meta.rb', line 40

def to_json(*args)
  to_h.to_json(*args)
end