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.
7228 7229 7230 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7228 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
7218 7219 7220 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7218 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
7226 7227 7228 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7226 def self_phone @self_phone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7233 7234 7235 7236 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7233 def update!(**args) @medium_type = args[:medium_type] if args.key?(:medium_type) @self_phone = args[:self_phone] if args.key?(:self_phone) end |