Class: Google::Apis::GmailV1::MessagePartHeader

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MessagePartHeader

Returns a new instance of MessagePartHeader.


913
914
915
# File 'generated/google/apis/gmail_v1/classes.rb', line 913

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#nameString

The name of the header before the : separator. For example, To. Corresponds to the JSON property name

Returns:

  • (String)

905
906
907
# File 'generated/google/apis/gmail_v1/classes.rb', line 905

def name
  @name
end

#valueString

The value of the header after the : separator. For example, [email protected]. com. Corresponds to the JSON property value

Returns:

  • (String)

911
912
913
# File 'generated/google/apis/gmail_v1/classes.rb', line 911

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


918
919
920
921
# File 'generated/google/apis/gmail_v1/classes.rb', line 918

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @value = args[:value] if args.key?(:value)
end