Class: Mobiscroll::Connect::ConnectedAccount
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::ConnectedAccount
- Defined in:
- lib/mobiscroll/connect/models.rb
Overview
One connected account under a provider.
Instance Attribute Summary collapse
-
#display ⇒ Object
Returns the value of attribute display.
-
#id ⇒ Object
Returns the value of attribute id.
Class Method Summary collapse
Instance Attribute Details
#display ⇒ Object
Returns the value of attribute display
39 40 41 |
# File 'lib/mobiscroll/connect/models.rb', line 39 def display @display end |
#id ⇒ Object
Returns the value of attribute 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 |