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.
7266 7267 7268 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7266 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
7256 7257 7258 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7256 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
7264 7265 7266 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7264 def self_phone @self_phone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7271 7272 7273 7274 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7271 def update!(**args) @medium_type = args[:medium_type] if args.key?(:medium_type) @self_phone = args[:self_phone] if args.key?(:self_phone) end |