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.



12574
12575
12576
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12574

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

Instance Attribute Details

#country_codeFixnum

Corresponds to the JSON property countryCode

Returns:

  • (Fixnum)


12567
12568
12569
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12567

def country_code
  @country_code
end

#phone_numberString

Corresponds to the JSON property phoneNumber

Returns:

  • (String)


12572
12573
12574
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12572

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12579
12580
12581
12582
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12579

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