Class: Etsy::Profile

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

Overview

Profile

Represents a profile resource of an Etsy user.

Instance Method Summary collapse

Methods included from Model

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

Instance Method Details

#joined_atObject

Time that this user joined Etsy



41
42
43
# File 'lib/etsy/profile.rb', line 41

def joined_at
  Time.at(joined)
end

#materialsObject



35
36
37
# File 'lib/etsy/profile.rb', line 35

def materials
  favorite_materials ? favorite_materials.split(',') : []
end

#seller?Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/etsy/profile.rb', line 45

def seller?
  is_seller
end