Class: ChartMogul::Import::DataSource
- Inherits:
-
Object
- Object
- ChartMogul::Import::DataSource
- Defined in:
- lib/chart_mogul/import/data_source.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(args) ⇒ DataSource
constructor
A new instance of DataSource.
Constructor Details
#initialize(args) ⇒ DataSource
Returns a new instance of DataSource.
10 11 12 13 14 15 |
# File 'lib/chart_mogul/import/data_source.rb', line 10 def initialize(args) @name = args[:name] @status = args[:status] @uuid = args[:uuid] @created_at = Time.parse(args[:created_at]) if args[:created_at] end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/chart_mogul/import/data_source.rb', line 5 def created_at @created_at end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/chart_mogul/import/data_source.rb', line 6 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
7 8 9 |
# File 'lib/chart_mogul/import/data_source.rb', line 7 def status @status end |
#uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
8 9 10 |
# File 'lib/chart_mogul/import/data_source.rb', line 8 def uuid @uuid end |