Class: Komoju::Installments

Inherits:
Object
  • Object
show all
Defined in:
lib/komoju-sdk/models/installments.rb

Constant Summary collapse

N3 =
"3".freeze
N5 =
"5".freeze
N6 =
"6".freeze
N10 =
"10".freeze
N12 =
"12".freeze
N15 =
"15".freeze
N18 =
"18".freeze
N20 =
"20".freeze
N24 =
"24".freeze
REVOLVING =
"revolving".freeze

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.all_varsObject



29
30
31
# File 'lib/komoju-sdk/models/installments.rb', line 29

def self.all_vars
  @all_vars ||= [N3, N5, N6, N10, N12, N15, N18, N20, N24, REVOLVING].freeze
end

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



36
37
38
# File 'lib/komoju-sdk/models/installments.rb', line 36

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



43
44
45
# File 'lib/komoju-sdk/models/installments.rb', line 43

def build_from_hash(value)
  value
end