Class: DHC::Formats::Plain
- Inherits:
-
DHC::Format
- Object
- DHC::Format
- DHC::Formats::Plain
- Includes:
- BasicMethodsConcern
- Defined in:
- lib/dhc/formats/plain.rb
Class Method Summary collapse
Instance Method Summary collapse
- #as_json(input) ⇒ Object
- #as_open_struct(input) ⇒ Object
- #format_options(options) ⇒ Object
- #to_body(input) ⇒ Object
- #to_s ⇒ Object
- #to_sym ⇒ Object
Class Method Details
.request(options) ⇒ Object
7 8 9 10 |
# File 'lib/dhc/formats/plain.rb', line 7 def self.request() [:format] = new super() end |
Instance Method Details
#as_json(input) ⇒ Object
16 17 18 |
# File 'lib/dhc/formats/plain.rb', line 16 def as_json(input) parse(input) end |
#as_open_struct(input) ⇒ Object
20 21 22 |
# File 'lib/dhc/formats/plain.rb', line 20 def as_open_struct(input) parse(input) end |
#format_options(options) ⇒ Object
12 13 14 |
# File 'lib/dhc/formats/plain.rb', line 12 def () end |
#to_body(input) ⇒ Object
24 25 26 |
# File 'lib/dhc/formats/plain.rb', line 24 def to_body(input) input end |
#to_s ⇒ Object
28 29 30 |
# File 'lib/dhc/formats/plain.rb', line 28 def to_s 'plain' end |
#to_sym ⇒ Object
32 33 34 |
# File 'lib/dhc/formats/plain.rb', line 32 def to_sym to_s.to_sym end |