constantcontact / ruby-sdk

Constant Contact Ruby SDK for v2 API
Other
17 stars 47 forks source link

Incomplete Account info accesors #42

Closed dinshaw closed 9 years ago

dinshaw commented 9 years ago

The gem should have accessors for all data. Currently the only accesable attributes are :

attr_accessor :website, :organization_name, :first_name, :last_name, :email, :phone, :country_code, :state_code

https://github.com/constantcontact/ruby-sdk/blob/master/lib/constantcontact/components/account/account_info.rb

{
    "website":"http://www.example.com",
    "organization_name":"My Company",
    "time_zone":"US/Eastern",
    "first_name":"Mary Jane",
    "last_name":"Doe",
    "email":"mjdoe@example.com",
    "phone":"5555555555",
    "company_logo":"https://ih.constantcontact.com/fs137/1100371573368/img/90.jpg",
    "country_code":"US",
    "state_code":"MA",
    "organization_addresses":[
        {
        "city": "Anytown",
        "line1":"123 Maple Street",
        "postal_code":"11111",
        "country_code":"US",
        "state_code":"MA"
        }
    ]
}

https://github.com/constantcontact/ruby-sdk/blob/master/spec/fixtures/account_info_response.json