Sha256: 04840f9ed2c0dd8359c1ba3158874cddcc8c12aa27577e531ae77cdcc5e2d2aa

Contents?: true

Size: 282 Bytes

Versions: 5

Compression:

Stored size: 282 Bytes

Contents

module Etsy4r
  class TagCommands < Etsy4r::Commands
    
    def get_top_tags
      @client.process("/tags")
    end
    
    def get_child_tags(tag)
      tag_param = tag.gsub(/\s|\-/, "_")
      @client.process("/tags/#{tag_param}/children")
    end
    
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tcocca-etsy4r-0.2.0 lib/etsy4r/tag_commands.rb
tcocca-etsy4r-0.3.0 lib/etsy4r/tag_commands.rb
tcocca-etsy4r-0.3.1 lib/etsy4r/tag_commands.rb
tcocca-etsy4r-0.3.2 lib/etsy4r/tag_commands.rb
tcocca-etsy4r-0.4.0 lib/etsy4r/tag_commands.rb