Class: GramProfile

Inherits:
GramV1Client::Base show all
Defined in:
lib/gram_v1_client/profile.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from GramV1Client::Base

password, proxy, reload_config, site, user

Class Method Details

.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object

Overwrite find_single from ActiveResource::Base to be able to use gram api (/accounts suffix) github.com/rails/activeresource/blob/master/lib/active_resource/base.rb#L991



11
12
13
14
# File 'lib/gram_v1_client/profile.rb', line 11

def self.element_path(id, prefix_options = {}, query_options = nil)
   id += "/profile"
   super(id, prefix_options, query_options)
end

Instance Method Details

#to_paramObject

Overwrite to_param from ActiveResource::Base to be able to use gram api (id = hruid) github.com/rails/activeresource/blob/master/lib/active_resource/base.rb#L991



18
19
20
# File 'lib/gram_v1_client/profile.rb', line 18

def to_param
  self.hruid
end