Module: PDC::Resource::RestApi

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/pdc/resource/rest_api.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url.



38
39
40
# File 'lib/pdc/resource/rest_api.rb', line 38

def url
  @url
end

Instance Method Details

#initialize(attr = {}) ⇒ Object



34
35
36
37
# File 'lib/pdc/resource/rest_api.rb', line 34

def initialize(attr = {})
  super
  @url = connection.build_url(uri).to_s
end