Class: Appwrite::Models::Headers
- Inherits:
-
Object
- Object
- Appwrite::Models::Headers
- Defined in:
- lib/appwrite/models/headers.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ Headers
constructor
A new instance of Headers.
- #to_map ⇒ Object
Constructor Details
#initialize(name:, value:) ⇒ Headers
Returns a new instance of Headers.
9 10 11 12 13 14 15 |
# File 'lib/appwrite/models/headers.rb', line 9 def initialize( name:, value: ) @name = name @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/appwrite/models/headers.rb', line 6 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/appwrite/models/headers.rb', line 7 def value @value end |
Class Method Details
Instance Method Details
#to_map ⇒ Object
24 25 26 27 28 29 |
# File 'lib/appwrite/models/headers.rb', line 24 def to_map { "name": @name, "value": @value } end |