Class: Google::Apis::CloudsearchV1::DeliveryMedium
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::DeliveryMedium
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#medium_type ⇒ String
Describes the medium the cent was sent/received.
-
#self_phone ⇒ Google::Apis::CloudsearchV1::VoicePhoneNumber
Represents both long and short phone number that can be called or texted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DeliveryMedium
constructor
A new instance of DeliveryMedium.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DeliveryMedium
Returns a new instance of DeliveryMedium.
7597 7598 7599 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7597 def initialize(**args) update!(**args) end |
Instance Attribute Details
#medium_type ⇒ String
Describes the medium the cent was sent/received. For example, if I receive an
SMS via GV, the medium_type will be GV.
Corresponds to the JSON property mediumType
7587 7588 7589 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7587 def medium_type @medium_type end |
#self_phone ⇒ Google::Apis::CloudsearchV1::VoicePhoneNumber
Represents both long and short phone number that can be called or texted.
Short telephone numbers are used to reach local services. Short numbers and
their purpose differ from country to country. These numbers in US are in the
form of N11 which is a three-digit abbreviated dialing telephone number.
Corresponds to the JSON property selfPhone
7595 7596 7597 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7595 def self_phone @self_phone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7602 7603 7604 7605 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7602 def update!(**args) @medium_type = args[:medium_type] if args.key?(:medium_type) @self_phone = args[:self_phone] if args.key?(:self_phone) end |