Class: Dinie::Bank

Inherits:
Internal::Model show all
Defined in:
lib/dinie/generated/types/bank.rb,
sig/dinie/generated/types/bank.rbs

Constant Summary

Constants inherited from Internal::Model

Internal::Model::REDACTED_ATTRIBUTES

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Internal::Model

#==, attribute, attributes, #deconstruct_keys, #hash, inherited, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Dinie::Internal::Model

Instance Attribute Details

#display_name ⇒ String (readonly)

Returns the value of attribute display_name.

Returns:

  • (String)


6
7
8
# File 'sig/dinie/generated/types/bank.rbs', line 6

def display_name
  @display_name
end

#id ⇒ String (readonly)

Returns the value of attribute id.

Returns:

  • (String)


7
8
9
# File 'sig/dinie/generated/types/bank.rbs', line 7

def id
  @id
end

#name ⇒ String (readonly)

Returns the value of attribute name.

Returns:

  • (String)


8
9
10
# File 'sig/dinie/generated/types/bank.rbs', line 8

def name
  @name
end

Class Method Details

.deserialize(raw) ⇒ Bank

Parameters:

  • raw (Hash[Symbol, untyped])

Returns:



9
10
11
12
13
14
15
# File 'lib/dinie/generated/types/bank.rb', line 9

def self.deserialize(raw)
  new(
    display_name: raw[:display_name],
    id: raw[:id],
    name: raw[:name]
  )
end