Class: AccessGrid::LandingPage
- Inherits:
-
Object
- Object
- AccessGrid::LandingPage
- Defined in:
- lib/accessgrid/console.rb
Overview
Represents a landing page configuration.
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#logo_url ⇒ Object
readonly
Returns the value of attribute logo_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#password_protected ⇒ Object
readonly
Returns the value of attribute password_protected.
Instance Method Summary collapse
-
#initialize(data) ⇒ LandingPage
constructor
A new instance of LandingPage.
Constructor Details
#initialize(data) ⇒ LandingPage
Returns a new instance of LandingPage.
283 284 285 286 287 288 289 290 |
# File 'lib/accessgrid/console.rb', line 283 def initialize(data) @id = data['id'] @name = data['name'] @created_at = data['created_at'] @kind = data['kind'] @password_protected = data['password_protected'] @logo_url = data['logo_url'] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def created_at @created_at end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def id @id end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def kind @kind end |
#logo_url ⇒ Object (readonly)
Returns the value of attribute logo_url.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def logo_url @logo_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def name @name end |
#password_protected ⇒ Object (readonly)
Returns the value of attribute password_protected.
281 282 283 |
# File 'lib/accessgrid/console.rb', line 281 def password_protected @password_protected end |