Class: Etsy4r::TagCommands

Inherits:
Commands show all
Defined in:
lib/etsy4r/tag_commands.rb

Instance Attribute Summary

Attributes inherited from Commands

#client

Instance Method Summary collapse

Methods inherited from Commands

#initialize

Constructor Details

This class inherits a constructor from Etsy4r::Commands

Instance Method Details

#get_child_tags(tag) ⇒ Object



8
9
10
11
# File 'lib/etsy4r/tag_commands.rb', line 8

def get_child_tags(tag)
  tag_param = tag.gsub(/\s|\-/, "_")
  @client.process("/tags/#{tag_param}/children")
end

#get_top_tagsObject



4
5
6
# File 'lib/etsy4r/tag_commands.rb', line 4

def get_top_tags
  @client.process("/tags")
end