class HelpScout::Customer::Address

Customer::Address developer.helpscout.net/objects/customer/address/

Name        Type            Example               Notes
id          Int             1234                  Unique identifier
lines       Array                                 Collection of strings 
                                                  representing the 
                                                  customer's street 
                                                  address.
city        String          Dallas   
state       String          TX   
postalCode  String          74206  
country     String          US   
createdAt   DateTime        2012-07-23T12:34:12Z  UTC time when this 
                                                  address was created.
modifiedAt  DateTime        2012-07-24T20:18:33Z  UTC time when this 
                                                  address was modified.

Attributes

city[R]
country[R]
createdAt[R]
id[R]
lines[R]
modifiedAt[R]
postalCode[R]
state[R]

Public Class Methods

new(object) click to toggle source

Creates a new Address object from a Hash of attributes

# File lib/helpscout/models.rb, line 634
def initialize(object)
  @createdAt = DateTime.iso8601(object["createdAt"]) if object["createdAt"]
  @modifiedAt = DateTime.iso8601(object["modifiedAt"]) if object["modifiedAt"]
  
  @id = object["id"]
  @lines = object["lines"]
  @city = object["city"]
  @state = object["state"]
  @postalCode = object["postalCode"]
  @country = object["country"]
end