Class: Gapic::Presenters::SamplePresenter::RequestField
- Inherits:
-
Object
- Object
- Gapic::Presenters::SamplePresenter::RequestField
- Defined in:
- lib/gapic/presenters/sample_presenter.rb
Overview
Representation of a request field.
Instance Attribute Summary collapse
-
#comment ⇒ Object
readonly
Returns the value of attribute comment.
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#input_parameter ⇒ Object
readonly
Returns the value of attribute input_parameter.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#value_is_file ⇒ Object
readonly
Returns the value of attribute value_is_file.
Instance Method Summary collapse
-
#initialize(field) ⇒ RequestField
constructor
A new instance of RequestField.
Constructor Details
#initialize(field) ⇒ RequestField
Returns a new instance of RequestField.
67 68 69 70 71 72 73 74 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 67 def initialize field @field = field["field"] @value = convert field["value"] @input_parameter = field["input_parameter"] @comment = field["comment"] @comment = nil if @comment&.empty? @value_is_file = field["value_is_file"] end |
Instance Attribute Details
#comment ⇒ Object (readonly)
Returns the value of attribute comment.
64 65 66 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 64 def comment @comment end |
#field ⇒ Object (readonly)
Returns the value of attribute field.
61 62 63 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 61 def field @field end |
#input_parameter ⇒ Object (readonly)
Returns the value of attribute input_parameter.
63 64 65 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 63 def input_parameter @input_parameter end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
62 63 64 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 62 def value @value end |
#value_is_file ⇒ Object (readonly)
Returns the value of attribute value_is_file.
65 66 67 |
# File 'lib/gapic/presenters/sample_presenter.rb', line 65 def value_is_file @value_is_file end |