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.
7661 7662 7663 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7661 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
7651 7652 7653 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7651 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
7659 7660 7661 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7659 def self_phone @self_phone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7666 7667 7668 7669 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7666 def update!(**args) @medium_type = args[:medium_type] if args.key?(:medium_type) @self_phone = args[:self_phone] if args.key?(:self_phone) end |