Class: DwollaSwagger::Customer
- Inherits:
-
BaseObject
- Object
- BaseObject
- DwollaSwagger::Customer
- Defined in:
- lib/dwolla_swagger/models/customer.rb
Instance Attribute Summary collapse
-
#_embedded ⇒ Object
Returns the value of attribute _embedded.
-
#_links ⇒ Object
Returns the value of attribute _links.
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#business_name ⇒ Object
Returns the value of attribute business_name.
-
#city ⇒ Object
Returns the value of attribute city.
-
#created ⇒ Object
Returns the value of attribute created.
-
#doing_business_as ⇒ Object
Returns the value of attribute doing_business_as.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#website ⇒ Object
Returns the value of attribute website.
Class Method Summary collapse
-
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
attribute type.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Customer
constructor
A new instance of Customer.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash
Constructor Details
#initialize(attributes = {}) ⇒ Customer
Returns a new instance of Customer.
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/dwolla_swagger/models/customer.rb', line 91 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'_links'] if (value = attributes[:'_links']).is_a?(Array) @_links = value end end if attributes[:'_embedded'] @_embedded = attributes[:'_embedded'] end if attributes[:'id'] @id = attributes[:'id'] end if attributes[:'firstName'] @first_name = attributes[:'firstName'] end if attributes[:'lastName'] @last_name = attributes[:'lastName'] end if attributes[:'email'] @email = attributes[:'email'] end if attributes[:'type'] @type = attributes[:'type'] end if attributes[:'status'] @status = attributes[:'status'] end if attributes[:'created'] @created = attributes[:'created'] end if attributes[:'address1'] @address1 = attributes[:'address1'] end if attributes[:'address2'] @address2 = attributes[:'address2'] end if attributes[:'city'] @city = attributes[:'city'] end if attributes[:'state'] @state = attributes[:'state'] end if attributes[:'postalCode'] @postal_code = attributes[:'postalCode'] end if attributes[:'phone'] @phone = attributes[:'phone'] end if attributes[:'businessName'] @business_name = attributes[:'businessName'] end if attributes[:'doingBusinessAs'] @doing_business_as = attributes[:'doingBusinessAs'] end if attributes[:'website'] @website = attributes[:'website'] end end |
Instance Attribute Details
#_embedded ⇒ Object
Returns the value of attribute _embedded.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def @_embedded end |
#_links ⇒ Object
Returns the value of attribute _links.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def _links @_links end |
#address1 ⇒ Object
Returns the value of attribute address1.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def address2 @address2 end |
#business_name ⇒ Object
Returns the value of attribute business_name.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def business_name @business_name end |
#city ⇒ Object
Returns the value of attribute city.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def city @city end |
#created ⇒ Object
Returns the value of attribute created.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def created @created end |
#doing_business_as ⇒ Object
Returns the value of attribute doing_business_as.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def doing_business_as @doing_business_as end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def last_name @last_name end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def phone @phone end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def state @state end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def type @type end |
#website ⇒ Object
Returns the value of attribute website.
4 5 6 |
# File 'lib/dwolla_swagger/models/customer.rb', line 4 def website @website end |
Class Method Details
.attribute_map ⇒ Object
attribute mapping from ruby-style variable name to JSON key
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/dwolla_swagger/models/customer.rb', line 6 def self.attribute_map { # :'_links' => :'_links', # :'_embedded' => :'_embedded', # :'id' => :'id', # :'first_name' => :'firstName', # :'last_name' => :'lastName', # :'email' => :'email', # :'type' => :'type', # :'status' => :'status', # :'created' => :'created', # :'address1' => :'address1', # :'address2' => :'address2', # :'city' => :'city', # :'state' => :'state', # :'postal_code' => :'postalCode', # :'phone' => :'phone', # :'business_name' => :'businessName', # :'doing_business_as' => :'doingBusinessAs', # :'website' => :'website' } end |
.swagger_types ⇒ Object
attribute type
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/dwolla_swagger/models/customer.rb', line 67 def self.swagger_types { :'_links' => :'map[string,HalLink]', :'_embedded' => :'object', :'id' => :'string', :'first_name' => :'string', :'last_name' => :'string', :'email' => :'string', :'type' => :'string', :'status' => :'string', :'created' => :'string', :'address1' => :'string', :'address2' => :'string', :'city' => :'string', :'state' => :'string', :'postal_code' => :'string', :'phone' => :'string', :'business_name' => :'string', :'doing_business_as' => :'string', :'website' => :'string' } end |