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.
6571 6572 6573 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6571 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
6561 6562 6563 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6561 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
6569 6570 6571 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6569 def self_phone @self_phone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6576 6577 6578 6579 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6576 def update!(**args) @medium_type = args[:medium_type] if args.key?(:medium_type) @self_phone = args[:self_phone] if args.key?(:self_phone) end |