Class: Cadenya::Types::CredentialHeaders
- Inherits:
-
Object
- Object
- Cadenya::Types::CredentialHeaders
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(headers: nil) ⇒ CredentialHeaders
constructor
A new instance of CredentialHeaders.
- #to_h ⇒ Object
Constructor Details
#initialize(headers: nil) ⇒ CredentialHeaders
Returns a new instance of CredentialHeaders.
2085 2086 2087 |
# File 'lib/cadenya/types.rb', line 2085 def initialize(headers: nil) @headers = headers end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
2083 2084 2085 |
# File 'lib/cadenya/types.rb', line 2083 def headers @headers end |
Class Method Details
.from_json(data) ⇒ Object
2089 2090 2091 2092 2093 |
# File 'lib/cadenya/types.rb', line 2089 def self.from_json(data) new( headers: data["headers"], ) end |