Class: Google::Apis::SlidesV1::Link

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

Overview

A hypertext link.

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) ⇒ Link

Returns a new instance of Link



2004
2005
2006
# File 'generated/google/apis/slides_v1/classes.rb', line 2004

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

Instance Attribute Details

#page_object_idString

If set, indicates this is a link to the specific page in this presentation with this ID. A page with this ID may not exist. Corresponds to the JSON property pageObjectId

Returns:

  • (String)


1985
1986
1987
# File 'generated/google/apis/slides_v1/classes.rb', line 1985

def page_object_id
  @page_object_id
end

If set, indicates this is a link to a slide in this presentation, addressed by its position. Corresponds to the JSON property relativeLink

Returns:

  • (String)


1996
1997
1998
# File 'generated/google/apis/slides_v1/classes.rb', line 1996

def relative_link
  @relative_link
end

#slide_indexFixnum

If set, indicates this is a link to the slide at this zero-based index in the presentation. There may not be a slide at this index. Corresponds to the JSON property slideIndex

Returns:

  • (Fixnum)


2002
2003
2004
# File 'generated/google/apis/slides_v1/classes.rb', line 2002

def slide_index
  @slide_index
end

#urlString

If set, indicates this is a link to the external web page at this URL. Corresponds to the JSON property url

Returns:

  • (String)


1990
1991
1992
# File 'generated/google/apis/slides_v1/classes.rb', line 1990

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2009
2010
2011
2012
2013
2014
# File 'generated/google/apis/slides_v1/classes.rb', line 2009

def update!(**args)
  @page_object_id = args[:page_object_id] if args.key?(:page_object_id)
  @url = args[:url] if args.key?(:url)
  @relative_link = args[:relative_link] if args.key?(:relative_link)
  @slide_index = args[:slide_index] if args.key?(:slide_index)
end