Class: Spear::Structure::Application::EmbededClass::ApplicationObject
- Inherits:
-
Object
- Object
- Spear::Structure::Application::EmbededClass::ApplicationObject
- Defined in:
- lib/spear/structure/application/embeded_class.rb
Instance Attribute Summary collapse
-
#app_did ⇒ Object
Returns the value of attribute app_did.
-
#is_viewed ⇒ Object
Returns the value of attribute is_viewed.
-
#view_date ⇒ Object
Returns the value of attribute view_date.
Instance Method Summary collapse
-
#initialize(app_did, is_viewed, view_date) ⇒ ApplicationObject
constructor
A new instance of ApplicationObject.
Constructor Details
#initialize(app_did, is_viewed, view_date) ⇒ ApplicationObject
Returns a new instance of ApplicationObject.
37 38 39 40 41 |
# File 'lib/spear/structure/application/embeded_class.rb', line 37 def initialize(app_did, is_viewed, view_date) @app_did = app_did @is_viewed = 'true'.eql?(is_viewed) @view_date = view_date unless view_date.blank? end |
Instance Attribute Details
#app_did ⇒ Object
Returns the value of attribute app_did.
35 36 37 |
# File 'lib/spear/structure/application/embeded_class.rb', line 35 def app_did @app_did end |
#is_viewed ⇒ Object
Returns the value of attribute is_viewed.
35 36 37 |
# File 'lib/spear/structure/application/embeded_class.rb', line 35 def is_viewed @is_viewed end |
#view_date ⇒ Object
Returns the value of attribute view_date.
35 36 37 |
# File 'lib/spear/structure/application/embeded_class.rb', line 35 def view_date @view_date end |