Class: Google::Apis::PlusV1::Place

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

Defined Under Namespace

Classes: Address, Position

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

Returns a new instance of Place



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

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

Instance Attribute Details

#addressGoogle::Apis::PlusV1::Place::Address

The physical address of the place. Corresponds to the JSON property address



1974
1975
1976
# File 'generated/google/apis/plus_v1/classes.rb', line 1974

def address
  @address
end

#display_nameString

The display name of the place. Corresponds to the JSON property displayName

Returns:

  • (String)


1979
1980
1981
# File 'generated/google/apis/plus_v1/classes.rb', line 1979

def display_name
  @display_name
end

#idString

The id of the place. Corresponds to the JSON property id

Returns:

  • (String)


1984
1985
1986
# File 'generated/google/apis/plus_v1/classes.rb', line 1984

def id
  @id
end

#kindString

Identifies this resource as a place. Value: "plus#place". Corresponds to the JSON property kind

Returns:

  • (String)


1989
1990
1991
# File 'generated/google/apis/plus_v1/classes.rb', line 1989

def kind
  @kind
end

#positionGoogle::Apis::PlusV1::Place::Position

The position of the place. Corresponds to the JSON property position



1994
1995
1996
# File 'generated/google/apis/plus_v1/classes.rb', line 1994

def position
  @position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2001
2002
2003
2004
2005
2006
2007
# File 'generated/google/apis/plus_v1/classes.rb', line 2001

def update!(**args)
  @address = args[:address] if args.key?(:address)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @position = args[:position] if args.key?(:position)
end