Class: Google::Apis::GmailV1::MessagePartHeader
- Inherits:
-
Object
- Object
- Google::Apis::GmailV1::MessagePartHeader
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/gmail_v1/classes.rb,
generated/google/apis/gmail_v1/representations.rb,
generated/google/apis/gmail_v1/representations.rb
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the header before the : separator.
-
#value ⇒ String
The value of the header after the : separator.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MessagePartHeader
constructor
A new instance of MessagePartHeader.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MessagePartHeader
Returns a new instance of MessagePartHeader
1068 1069 1070 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1068 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The name of the header before the : separator. For example, To.
Corresponds to the JSON property name
1060 1061 1062 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1060 def name @name end |
#value ⇒ String
The value of the header after the : separator. For example, someuser@example.
com.
Corresponds to the JSON property value
1066 1067 1068 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1066 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1073 1074 1075 1076 |
# File 'generated/google/apis/gmail_v1/classes.rb', line 1073 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |