Class: ChartMogul::Import::DataSource

Inherits:
Object
  • Object
show all
Defined in:
lib/chart_mogul/import/data_source.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject (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

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/chart_mogul/import/data_source.rb', line 6

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



7
8
9
# File 'lib/chart_mogul/import/data_source.rb', line 7

def status
  @status
end

#uuidObject (readonly)

Returns the value of attribute uuid.



8
9
10
# File 'lib/chart_mogul/import/data_source.rb', line 8

def uuid
  @uuid
end