Class: JSONAPIonify::Api::HeaderOptions
- Inherits:
-
Object
- Object
- JSONAPIonify::Api::HeaderOptions
- Defined in:
- lib/jsonapionify/api/header_options.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#documented ⇒ Object
readonly
Returns the value of attribute documented.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
Instance Method Summary collapse
-
#initialize(name, actions: nil, required: false, documented: true) ⇒ HeaderOptions
constructor
A new instance of HeaderOptions.
Constructor Details
#initialize(name, actions: nil, required: false, documented: true) ⇒ HeaderOptions
Returns a new instance of HeaderOptions.
6 7 8 9 10 11 |
# File 'lib/jsonapionify/api/header_options.rb', line 6 def initialize(name, actions: nil, required: false, documented: true) @name = name @actions = Array.wrap(actions) @required = required @documented = documented end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
4 5 6 |
# File 'lib/jsonapionify/api/header_options.rb', line 4 def actions @actions end |
#documented ⇒ Object (readonly)
Returns the value of attribute documented.
4 5 6 |
# File 'lib/jsonapionify/api/header_options.rb', line 4 def documented @documented end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/jsonapionify/api/header_options.rb', line 4 def name @name end |
#required ⇒ Object (readonly)
Returns the value of attribute required.
4 5 6 |
# File 'lib/jsonapionify/api/header_options.rb', line 4 def required @required end |