class Trademe

Public Class Methods

new(listing_id) click to toggle source
# File lib/trademe.rb, line 4
def initialize(listing_id)
  @listing = JSON.parse open("http://api.trademe.co.nz/v1/Listings/#{listing_id}.json").read
end

Public Instance Methods

get_keys() click to toggle source
# File lib/trademe.rb, line 12
def get_keys
  @listing.keys
end
title() click to toggle source
# File lib/trademe.rb, line 8
def title
  @listing[:Title]
end