Class: Pandarus::Term

Inherits:
ModelBase show all
Defined in:
lib/pandarus/models/term.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from ModelBase

#assign, #attr, #has_attr?, #initialize, #inspect, #to_body, #vivify

Constructor Details

This class inherits a constructor from Pandarus::ModelBase

Instance Attribute Details

#end_atObject

Returns the value of attribute end_at.



6
7
8
# File 'lib/pandarus/models/term.rb', line 6

def end_at
  @end_at
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/pandarus/models/term.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/pandarus/models/term.rb', line 6

def name
  @name
end

#start_atObject

Returns the value of attribute start_at.



6
7
8
# File 'lib/pandarus/models/term.rb', line 6

def start_at
  @start_at
end

Class Method Details

.attribute_mapObject



9
10
11
12
13
14
15
16
17
# File 'lib/pandarus/models/term.rb', line 9

def self.attribute_map
  {
    :id => {:external => "id", :container => false, :type => "Integer"},
    :name => {:external => "name", :container => false, :type => "String"},
    :start_at => {:external => "start_at", :container => false, :type => "DateTime"},
    :end_at => {:external => "end_at", :container => false, :type => "DateTime"}

  }
end