Class: Sendgrid::API::Entities::List
- Defined in:
- lib/sendgrid/api/entities/list.rb
Instance Attribute Summary
Attributes inherited from Entity
Class Method Summary collapse
-
.from_object(object) ⇒ Entities::List
Convert the object to an Entities::List.
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.
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 |