Class: Payhub::Health

Inherits:
Struct
  • Object
show all
Defined in:
lib/payhub/types.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#pspsObject

Returns the value of attribute psps

Returns:

  • (Object)

    the current value of psps



29
30
31
# File 'lib/payhub/types.rb', line 29

def psps
  @psps
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



29
30
31
# File 'lib/payhub/types.rb', line 29

def status
  @status
end

Class Method Details

.from_raw(raw) ⇒ Object



30
31
32
# File 'lib/payhub/types.rb', line 30

def self.from_raw(raw)
  new(status: raw["status"].to_s, psps: Array(raw["psps"]))
end