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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gmail_v1/classes.rb,
lib/google/apis/gmail_v1/representations.rb,
lib/google/apis/gmail_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MessagePartHeader

Returns a new instance of MessagePartHeader.



1373
1374
1375
# File 'lib/google/apis/gmail_v1/classes.rb', line 1373

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)


1365
1366
1367
# File 'lib/google/apis/gmail_v1/classes.rb', line 1365

def name
  @name
end

#valueString

The value of the header after the : separator. For example, someuser@ example.com. Corresponds to the JSON property value

Returns:

  • (String)


1371
1372
1373
# File 'lib/google/apis/gmail_v1/classes.rb', line 1371

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1378
1379
1380
1381
# File 'lib/google/apis/gmail_v1/classes.rb', line 1378

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