Class: SendGrid4r::REST::MarketingCampaigns::Contacts::ReservedFields::Field

Inherits:
Struct
  • Object
show all
Defined in:
lib/sendgrid4r/rest/marketing_campaigns/contacts/reserved_fields.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/sendgrid4r/rest/marketing_campaigns/contacts/reserved_fields.rb', line 12

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



12
13
14
# File 'lib/sendgrid4r/rest/marketing_campaigns/contacts/reserved_fields.rb', line 12

def type
  @type
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/sendgrid4r/rest/marketing_campaigns/contacts/reserved_fields.rb', line 13

def eql?(other)
  name.eql?(other.name)
end

#hashObject



17
18
19
# File 'lib/sendgrid4r/rest/marketing_campaigns/contacts/reserved_fields.rb', line 17

def hash
  name.hash
end