Class: AgridClient::Lead
- Inherits:
-
Object
- Object
- AgridClient::Lead
- Includes:
- SwaggerModel
- Defined in:
- lib/agrid_client/models/lead.rb
Instance Attribute Summary collapse
-
#customer ⇒ Object
Returns the value of attribute customer.
-
#id ⇒ Object
Returns the value of attribute id.
-
#message ⇒ Object
Returns the value of attribute message.
-
#quote_id ⇒ Object
Returns the value of attribute quote_id.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#initialize(attributes = {}) ⇒ Lead
constructor
Initializes the object.
Methods included from SwaggerModel
#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ Lead
Initializes the object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/agrid_client/models/lead.rb', line 49 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes[:'id'] self.id = attributes[:'id'] end if attributes[:'message'] self. = attributes[:'message'] end if attributes[:'customer'] self.customer = attributes[:'customer'] end if attributes[:'quote_id'] self.quote_id = attributes[:'quote_id'] end end |
Instance Attribute Details
#customer ⇒ Object
Returns the value of attribute customer.
23 24 25 |
# File 'lib/agrid_client/models/lead.rb', line 23 def customer @customer end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/agrid_client/models/lead.rb', line 19 def id @id end |
#message ⇒ Object
Returns the value of attribute message.
21 22 23 |
# File 'lib/agrid_client/models/lead.rb', line 21 def @message end |
#quote_id ⇒ Object
Returns the value of attribute quote_id.
25 26 27 |
# File 'lib/agrid_client/models/lead.rb', line 25 def quote_id @quote_id end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
28 29 30 31 32 33 34 35 |
# File 'lib/agrid_client/models/lead.rb', line 28 def self.attribute_map { :'id' => :'id', :'message' => :'message', :'customer' => :'customer', :'quote_id' => :'quote_id' } end |
.swagger_types ⇒ Object
Attribute type mapping.
38 39 40 41 42 43 44 45 |
# File 'lib/agrid_client/models/lead.rb', line 38 def self.swagger_types { :'id' => :'String', :'message' => :'String', :'customer' => :'Customer', :'quote_id' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
71 72 73 74 75 |
# File 'lib/agrid_client/models/lead.rb', line 71 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id end |