Class: GramV1Client::Search
- Defined in:
- lib/gram_v1_client/search.rb
Class Method Summary collapse
-
.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.
Instance Method Summary collapse
- #collection_path(prefix_options = {}, query_options = nil) ⇒ Object
-
#to_param ⇒ Object
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.
Methods inherited from 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
18 19 20 21 22 |
# File 'lib/gram_v1_client/search.rb', line 18 def self.element_path(id, = {}, = nil) #query_options = "uniq.json?idSoce=" + id id = "uniq" super(id, , ) end |
Instance Method Details
#collection_path(prefix_options = {}, query_options = nil) ⇒ Object
24 25 26 27 |
# File 'lib/gram_v1_client/search.rb', line 24 def collection_path( = {}, = nil) id = "uniq" super(id, , ) end |
#to_param ⇒ Object
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
31 32 33 |
# File 'lib/gram_v1_client/search.rb', line 31 def to_param self.hruid end |