public
Description: a wrapper for the oscurrency API
Homepage: http://opensourcecurrency.org
Clone URL: git://github.com/herestomwiththeweather/oscurrency-ruby-api-wrapper.git
100644 20 lines (16 sloc) 0.389 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
module Oscurrency
  module Models
    class Exchange < Base
      cattr_accessor :element_name
      belongs_to :person
      #self.site = "#{self.site}/people/:person_id/"
 
      def self.site
        create_site_uri_from(@site.to_s + "/people/:person_id/")
      end
 
      self.element_name = 'exchange'
 
      def initialize(options)
        super(options)
      end
    end
  end
end