Class: CKAN::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/ckan/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, format, description, hash) ⇒ Resource



5
6
7
# File 'lib/ckan/resource.rb', line 5

def initialize(url, format, description, hash)
  @url, @format, @description, @hash = url, format, description, hash
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/ckan/resource.rb', line 3

def description
  @description
end

#formatObject (readonly)

Returns the value of attribute format.



3
4
5
# File 'lib/ckan/resource.rb', line 3

def format
  @format
end

#hashObject (readonly)

Returns the value of attribute hash.



3
4
5
# File 'lib/ckan/resource.rb', line 3

def hash
  @hash
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/ckan/resource.rb', line 3

def url
  @url
end