Class: SendGrid4r::REST::MarketingCampaigns::Contacts::CustomFields::Field

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



12
13
14
# File 'lib/sendgrid4r/rest/marketing_campaigns/contacts/custom_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/custom_fields.rb', line 12

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



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

def value
  @value
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


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

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

#hashObject



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

def hash
  id.hash
end