Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationPhoneNumber

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ConversationPhoneNumber

Returns a new instance of GoogleCloudDialogflowV2beta1ConversationPhoneNumber.



12445
12446
12447
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12445

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

Instance Attribute Details

#country_codeFixnum

Corresponds to the JSON property countryCode

Returns:

  • (Fixnum)


12438
12439
12440
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12438

def country_code
  @country_code
end

#phone_numberString

Corresponds to the JSON property phoneNumber

Returns:

  • (String)


12443
12444
12445
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12443

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12450
12451
12452
12453
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12450

def update!(**args)
  @country_code = args[:country_code] if args.key?(:country_code)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end