Class: Xberg::RevisionAnchorSheet

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

Overview

Spreadsheet cell or range, identified by sheet index and optional name.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



4983
4984
4985
# File 'lib/xberg/native.rb', line 4983

def index
  @index
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



4983
4984
4985
# File 'lib/xberg/native.rb', line 4983

def name
  @name
end

Class Method Details

.from_hash(hash) ⇒ Object



5006
5007
5008
# File 'lib/xberg/native.rb', line 5006

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

Instance Method Details

#page?Boolean

Returns:

  • (Boolean)


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

def page? = false

#paragraph?Boolean

Returns:

  • (Boolean)


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

def paragraph? = false

#sheet?Boolean

Returns:

  • (Boolean)


5002
5003
5004
# File 'lib/xberg/native.rb', line 5002

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

#slide?Boolean

Returns:

  • (Boolean)


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

def slide? = false

#table_cell?Boolean

Returns:

  • (Boolean)


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

def table_cell? = false