Class: Mobiscroll::Connect::BlockedAccount
- Inherits:
-
Struct
- Object
- Struct
- Mobiscroll::Connect::BlockedAccount
- Defined in:
- lib/mobiscroll/connect/models.rb
Overview
A connected account that withheld calendar access on its provider's consent screen.
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#provider ⇒ Object
Returns the value of attribute provider.
Class Method Summary collapse
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account
39 40 41 |
# File 'lib/mobiscroll/connect/models.rb', line 39 def account @account end |
#provider ⇒ Object
Returns the value of attribute provider
39 40 41 |
# File 'lib/mobiscroll/connect/models.rb', line 39 def provider @provider end |
Class Method Details
.from_h(hash) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/mobiscroll/connect/models.rb', line 40 def self.from_h(hash) return nil if hash.nil? new( provider: hash['provider'] || hash[:provider], account: hash['account'] || hash[:account] ) end |