Class: Mobiscroll::Connect::ConnectedAccount

Inherits:
Struct
  • Object
show all
Defined in:
lib/mobiscroll/connect/models.rb

Overview

One connected account under a provider.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#displayObject

Returns the value of attribute display

Returns:

  • (Object)

    the current value of display



39
40
41
# File 'lib/mobiscroll/connect/models.rb', line 39

def display
  @display
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



39
40
41
# File 'lib/mobiscroll/connect/models.rb', line 39

def id
  @id
end

Class Method Details

.from_h(hash) ⇒ Object



40
41
42
43
44
# File 'lib/mobiscroll/connect/models.rb', line 40

def self.from_h(hash)
  return nil if hash.nil?

  new(id: hash['id'] || hash[:id], display: hash['display'] || hash[:display])
end