Class: Google::Apis::DocsV1::DocumentStyle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb

Overview

The style of the document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DocumentStyle

Returns a new instance of DocumentStyle



928
929
930
# File 'generated/google/apis/docs_v1/classes.rb', line 928

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#backgroundGoogle::Apis::DocsV1::Background

Represents the background of a document. Corresponds to the JSON property background



838
839
840
# File 'generated/google/apis/docs_v1/classes.rb', line 838

def background
  @background
end

The ID of the default footer. If not set, there is no default footer. Corresponds to the JSON property defaultFooterId

Returns:

  • (String)


843
844
845
# File 'generated/google/apis/docs_v1/classes.rb', line 843

def default_footer_id
  @default_footer_id
end

#default_header_idString

The ID of the default header. If not set, there is no default header. Corresponds to the JSON property defaultHeaderId

Returns:

  • (String)


848
849
850
# File 'generated/google/apis/docs_v1/classes.rb', line 848

def default_header_id
  @default_header_id
end

The ID of the footer used only for even pages. The value of use_even_page_header_footer determines whether to use the default_footer_id or this value for the footer on even pages. If not set, there is no even page footer. Corresponds to the JSON property evenPageFooterId

Returns:

  • (String)


856
857
858
# File 'generated/google/apis/docs_v1/classes.rb', line 856

def even_page_footer_id
  @even_page_footer_id
end

#even_page_header_idString

The ID of the header used only for even pages. The value of use_even_page_header_footer determines whether to use the default_header_id or this value for the header on even pages. If not set, there is no even page header. Corresponds to the JSON property evenPageHeaderId

Returns:

  • (String)


864
865
866
# File 'generated/google/apis/docs_v1/classes.rb', line 864

def even_page_header_id
  @even_page_header_id
end

The ID of the footer used only for the first page. If not set then a unique footer for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_footer_id or this value for the footer on the first page. If not set, there is no first page footer. Corresponds to the JSON property firstPageFooterId

Returns:

  • (String)


873
874
875
# File 'generated/google/apis/docs_v1/classes.rb', line 873

def first_page_footer_id
  @first_page_footer_id
end

#first_page_header_idString

The ID of the header used only for the first page. If not set then a unique header for the first page does not exist. The value of use_first_page_header_footer determines whether to use the default_header_id or this value for the header on the first page. If not set, there is no first page header. Corresponds to the JSON property firstPageHeaderId

Returns:

  • (String)


882
883
884
# File 'generated/google/apis/docs_v1/classes.rb', line 882

def first_page_header_id
  @first_page_header_id
end

#margin_bottomGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property marginBottom



887
888
889
# File 'generated/google/apis/docs_v1/classes.rb', line 887

def margin_bottom
  @margin_bottom
end

#margin_leftGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property marginLeft



892
893
894
# File 'generated/google/apis/docs_v1/classes.rb', line 892

def margin_left
  @margin_left
end

#margin_rightGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property marginRight



897
898
899
# File 'generated/google/apis/docs_v1/classes.rb', line 897

def margin_right
  @margin_right
end

#margin_topGoogle::Apis::DocsV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property marginTop



902
903
904
# File 'generated/google/apis/docs_v1/classes.rb', line 902

def margin_top
  @margin_top
end

#page_number_startFixnum

The page number from which to start counting the number of pages. Corresponds to the JSON property pageNumberStart

Returns:

  • (Fixnum)


907
908
909
# File 'generated/google/apis/docs_v1/classes.rb', line 907

def page_number_start
  @page_number_start
end

#page_sizeGoogle::Apis::DocsV1::Size

A width and height. Corresponds to the JSON property pageSize



912
913
914
# File 'generated/google/apis/docs_v1/classes.rb', line 912

def page_size
  @page_size
end

Indicates whether to use the even page header / footer IDs for the even pages. Corresponds to the JSON property useEvenPageHeaderFooter

Returns:

  • (Boolean)


918
919
920
# File 'generated/google/apis/docs_v1/classes.rb', line 918

def use_even_page_header_footer
  @use_even_page_header_footer
end

Indicates whether to use the first page header / footer IDs for the first page. Corresponds to the JSON property useFirstPageHeaderFooter

Returns:

  • (Boolean)


925
926
927
# File 'generated/google/apis/docs_v1/classes.rb', line 925

def use_first_page_header_footer
  @use_first_page_header_footer
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
# File 'generated/google/apis/docs_v1/classes.rb', line 933

def update!(**args)
  @background = args[:background] if args.key?(:background)
  @default_footer_id = args[:default_footer_id] if args.key?(:default_footer_id)
  @default_header_id = args[:default_header_id] if args.key?(:default_header_id)
  @even_page_footer_id = args[:even_page_footer_id] if args.key?(:even_page_footer_id)
  @even_page_header_id = args[:even_page_header_id] if args.key?(:even_page_header_id)
  @first_page_footer_id = args[:first_page_footer_id] if args.key?(:first_page_footer_id)
  @first_page_header_id = args[:first_page_header_id] if args.key?(:first_page_header_id)
  @margin_bottom = args[:margin_bottom] if args.key?(:margin_bottom)
  @margin_left = args[:margin_left] if args.key?(:margin_left)
  @margin_right = args[:margin_right] if args.key?(:margin_right)
  @margin_top = args[:margin_top] if args.key?(:margin_top)
  @page_number_start = args[:page_number_start] if args.key?(:page_number_start)
  @page_size = args[:page_size] if args.key?(:page_size)
  @use_even_page_header_footer = args[:use_even_page_header_footer] if args.key?(:use_even_page_header_footer)
  @use_first_page_header_footer = args[:use_first_page_header_footer] if args.key?(:use_first_page_header_footer)
end