Class: Sendgrid::API::Entities::List

Inherits:
Entity
  • Object
show all
Defined in:
lib/sendgrid/api/entities/list.rb

Instance Attribute Summary

Attributes inherited from Entity

#attributes

Class Method Summary collapse

Methods inherited from Entity

#as_json, attribute, attributes, clear_attributes, from_response, #initialize, #method_missing, #respond_to?, #to_json

Constructor Details

This class inherits a constructor from Sendgrid::API::Entities::Entity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Sendgrid::API::Entities::Entity

Class Method Details

.from_object(object) ⇒ Entities::List

Convert the object to an Entities::List.

Parameters:

  • object (String, Entities::List)

    A list name or Entities::List object

Returns:



16
17
18
19
20
21
22
23
# File 'lib/sendgrid/api/entities/list.rb', line 16

def from_object(object)
  case object
  when ::String
    new(:list => object)
  when self
    object
  end
end