Class: ActivePublicResources::ReturnTypes::File
- Inherits:
-
BaseReturnType
- Object
- BaseReturnType
- ActivePublicResources::ReturnTypes::File
- Defined in:
- lib/active_public_resources/return_types/file.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from BaseReturnType
#driver, #remote_id, #return_type, #url
Instance Method Summary collapse
-
#initialize(args) ⇒ File
constructor
A new instance of File.
Methods inherited from BaseReturnType
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_type ⇒ Object
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 |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/active_public_resources/return_types/file.rb', line 4 def text @text end |