Class: Ellipses::Client::Meta::Insertion

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

#afterObject

Returns the value of attribute after

Returns:

  • (Object)

    the current value of after



49
50
51
# File 'lib/ellipses/client/meta.rb', line 49

def after
  @after
end

#beforeObject

Returns the value of attribute before

Returns:

  • (Object)

    the current value of before



49
50
51
# File 'lib/ellipses/client/meta.rb', line 49

def before
  @before
end

#digestObject

Returns the value of attribute digest

Returns:

  • (Object)

    the current value of digest



49
50
51
# File 'lib/ellipses/client/meta.rb', line 49

def digest
  @digest
end

#signatureObject

Returns the value of attribute signature

Returns:

  • (Object)

    the current value of signature



49
50
51
# File 'lib/ellipses/client/meta.rb', line 49

def signature
  @signature
end

Class Method Details

.from_hash(hash) ⇒ Object



58
59
60
# File 'lib/ellipses/client/meta.rb', line 58

def self.from_hash(hash)
  new(**hash)
end

Instance Method Details

#to_json(*args) ⇒ Object



54
55
56
# File 'lib/ellipses/client/meta.rb', line 54

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

#to_sObject



50
51
52
# File 'lib/ellipses/client/meta.rb', line 50

def to_s
  signature
end