class Heroix::Client

Public Instance Methods

beneficiaries() click to toggle source
# File lib/heroix/client.rb, line 17
def beneficiaries
  build_resource :beneficiaries, :beneficiary
end
beneficiary_registrations() click to toggle source
# File lib/heroix/client.rb, line 21
def beneficiary_registrations
  build_resource :beneficiary_registrations, :beneficiary_registration
end
beneficiary_rules() click to toggle source
# File lib/heroix/client.rb, line 25
def beneficiary_rules
  build_resource :beneficiary_rules, :beneficiary_rule
end
campaign_beneficiaries() click to toggle source
# File lib/heroix/client.rb, line 41
def campaign_beneficiaries
  build_resource :campaign_beneficiaries, :campaign_beneficiary
end
campaign_peer_to_peers() click to toggle source
# File lib/heroix/client.rb, line 33
def campaign_peer_to_peers
  build_resource :campaign_peer_to_peers, :campaign_peer_to_peer
end
campaigns() click to toggle source
# File lib/heroix/client.rb, line 29
def campaigns
  build_resource :campaigns, :campaign
end
microsite_pages() click to toggle source
# File lib/heroix/client.rb, line 49
def microsite_pages
  build_resource :microsite_pages, :microsite_page
end
microsites() click to toggle source
# File lib/heroix/client.rb, line 45
def microsites
  build_resource :microsites, :microsite
end
organisation_beneficiaries() click to toggle source
# File lib/heroix/client.rb, line 37
def organisation_beneficiaries
  build_resource :organisation_beneficiaries, :organisation_beneficiary
end
organisations() click to toggle source
# File lib/heroix/client.rb, line 13
def organisations
  build_resource :organisations, :organisation
end
session() click to toggle source
# File lib/heroix/client.rb, line 9
def session
  build_resource :session, :session
end
users() click to toggle source
# File lib/heroix/client.rb, line 5
def users
  build_resource :users, :user
end

Private Instance Methods

build_resource(path, type) click to toggle source
# File lib/heroix/client.rb, line 59
def build_resource(path, type)
  Resource.new :url => url_for(path),
               :token => token,
               :type => type
end