Class: Fedora::Repository::StringResponse

Inherits:
String
  • Object
show all
Defined in:
lib/fedora/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s, content_type) ⇒ StringResponse

Returns a new instance of StringResponse.



46
47
48
49
# File 'lib/fedora/repository.rb', line 46

def initialize(s, content_type)
  super(s)
  @content_type = content_type
end

Instance Attribute Details

#content_typeObject (readonly)

Returns the value of attribute content_type.



44
45
46
# File 'lib/fedora/repository.rb', line 44

def content_type
  @content_type
end