Class: Thinreports::SectionReport::Schema::Report

Inherits:
BasicReport::Core::Shape::Manager::Format show all
Defined in:
lib/thinreports/section_report/schema/report.rb

Instance Attribute Summary collapse

Attributes inherited from BasicReport::Core::Shape::Manager::Format

#identifier

Instance Method Summary collapse

Methods inherited from BasicReport::Core::Shape::Manager::Format

#find_shape, #has_shape?, #shapes

Methods inherited from BasicReport::Core::Format::Base

#attributes, config_accessor, config_checker, config_reader, config_writer

Constructor Details

#initialize(schema_data, headers:, details:, footers:) ⇒ Report

Returns a new instance of Report.



21
22
23
24
25
26
# File 'lib/thinreports/section_report/schema/report.rb', line 21

def initialize(schema_data, headers:, details:, footers:)
  super(schema_data)
  @headers = headers
  @details = details
  @footers = footers
end

Instance Attribute Details

#detailsObject (readonly)

Returns the value of attribute details.



15
16
17
# File 'lib/thinreports/section_report/schema/report.rb', line 15

def details
  @details
end

#footersObject (readonly)

Returns the value of attribute footers.



15
16
17
# File 'lib/thinreports/section_report/schema/report.rb', line 15

def footers
  @footers
end

#headersObject (readonly)

Returns the value of attribute headers.



15
16
17
# File 'lib/thinreports/section_report/schema/report.rb', line 15

def headers
  @headers
end

Instance Method Details

#user_paper_type?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/thinreports/section_report/schema/report.rb', line 17

def user_paper_type?
  page_paper_type == 'user'
end