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.



12611
12612
12613
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12611

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

Instance Attribute Details

#country_codeFixnum

Corresponds to the JSON property countryCode

Returns:

  • (Fixnum)


12604
12605
12606
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12604

def country_code
  @country_code
end

#phone_numberString

Corresponds to the JSON property phoneNumber

Returns:

  • (String)


12609
12610
12611
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12609

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12616
12617
12618
12619
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12616

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