Class: Appwrite::Models::AlgoBcrypt

Inherits:
Object
  • Object
show all
Defined in:
lib/appwrite/models/algo_bcrypt.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ AlgoBcrypt

Returns a new instance of AlgoBcrypt.



8
9
10
11
12
# File 'lib/appwrite/models/algo_bcrypt.rb', line 8

def initialize(
    type:
)
    @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/appwrite/models/algo_bcrypt.rb', line 6

def type
  @type
end

Class Method Details

.from(map:) ⇒ Object



14
15
16
17
18
# File 'lib/appwrite/models/algo_bcrypt.rb', line 14

def self.from(map:)
    AlgoBcrypt.new(
        type: map["type"]
    )
end

Instance Method Details

#to_mapObject



20
21
22
23
24
# File 'lib/appwrite/models/algo_bcrypt.rb', line 20

def to_map
    {
        "type": @type
    }
end