Class: Xberg::RevisionAnchorPage

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
RevisionAnchor
Defined in:
lib/xberg/native.rb

Overview

Page, identified by its zero-based index.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



4401
4402
4403
# File 'lib/xberg/native.rb', line 4401

def index
  @index
end

Class Method Details

.from_hash(hash) ⇒ Object



4422
4423
4424
# File 'lib/xberg/native.rb', line 4422

def self.from_hash(hash)
  new(index: hash[:index] || hash["index"])
end

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


4414
# File 'lib/xberg/native.rb', line 4414

def page? = true

#paragraph?Boolean

Returns:

  • (Boolean)


4410
# File 'lib/xberg/native.rb', line 4410

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


4418
4419
4420
# File 'lib/xberg/native.rb', line 4418

def sheet? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#slide?Boolean

Returns:

  • (Boolean)


4416
# File 'lib/xberg/native.rb', line 4416

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


4412
# File 'lib/xberg/native.rb', line 4412

def table_cell? = false