Class: ActivePublicResources::ReturnTypes::File

Inherits:
BaseReturnType show all
Defined in:
lib/active_public_resources/return_types/file.rb

Instance Attribute Summary collapse

Attributes inherited from BaseReturnType

#driver, #remote_id, #return_type, #url

Instance Method Summary collapse

Methods inherited from BaseReturnType

#attributes

Constructor Details

#initialize(args) ⇒ File

Returns a new instance of File.



6
7
8
# File 'lib/active_public_resources/return_types/file.rb', line 6

def initialize(args)
  super(args.merge(:return_type => 'file'))
end

Instance Attribute Details

#content_typeObject

Returns the value of attribute content_type.



4
5
6
# File 'lib/active_public_resources/return_types/file.rb', line 4

def content_type
  @content_type
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/active_public_resources/return_types/file.rb', line 4

def text
  @text
end