Class: Google::Apis::PlusDomainsV1::Place

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_domains_v1/classes.rb,
generated/google/apis/plus_domains_v1/representations.rb,
generated/google/apis/plus_domains_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.


2474
2475
2476
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2474

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

Instance Attribute Details

#addressGoogle::Apis::PlusDomainsV1::Place::Address

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


2452
2453
2454
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2452

def address
  @address
end

#display_nameString

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

Returns:

  • (String)

2457
2458
2459
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2457

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)

2462
2463
2464
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2462

def id
  @id
end

#kindString

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

Returns:

  • (String)

2467
2468
2469
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2467

def kind
  @kind
end

#positionGoogle::Apis::PlusDomainsV1::Place::Position

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


2472
2473
2474
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2472

def position
  @position
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2479
2480
2481
2482
2483
2484
2485
# File 'generated/google/apis/plus_domains_v1/classes.rb', line 2479

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