Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ConversationPhoneNumber

Returns a new instance of GoogleCloudDialogflowV2ConversationPhoneNumber.



8678
8679
8680
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8678

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

Instance Attribute Details

#country_codeFixnum

Corresponds to the JSON property countryCode

Returns:

  • (Fixnum)


8671
8672
8673
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8671

def country_code
  @country_code
end

#phone_numberString

Corresponds to the JSON property phoneNumber

Returns:

  • (String)


8676
8677
8678
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8676

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8683
8684
8685
8686
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8683

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