Class: Etsy::Address

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/etsy/address.rb

Overview

Address

Represents a single Etsy Address. Users may or may not have associated addresses.

An address has the following attributes:

first_line

Street address

second_line

Additional street information.

city
state
country
country_id

The Etsy country id

Class Method Summary collapse

Methods included from Model

included, #initialize, #result, #secret, #token

Class Method Details

.find(*identifiers_and_options) ⇒ Object

Retrieve all of a user’s addresses by user name or ID:

Etsy::Address.find('reagent')


29
30
31
32
# File 'lib/etsy/address.rb', line 29

def self.find(*identifiers_and_options)
  self.append_to_endpoint('addresses', identifiers_and_options)
  self.find_one_or_more('users', identifiers_and_options)
end