Class: AgridClient::Sale

Inherits:
Object
  • Object
show all
Includes:
SwaggerModel
Defined in:
lib/agrid_client/models/sale.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from SwaggerModel

#_deserialize, #_to_hash, #build_from_hash, #eql?, #to_body, #to_hash

Instance Attribute Details

#expiration_dateObject

Returns the value of attribute expiration_date.



8
9
10
# File 'lib/agrid_client/models/sale.rb', line 8

def expiration_date
  @expiration_date
end

#noteObject

Returns the value of attribute note.



8
9
10
# File 'lib/agrid_client/models/sale.rb', line 8

def note
  @note
end

#priceObject

Returns the value of attribute price.



8
9
10
# File 'lib/agrid_client/models/sale.rb', line 8

def price
  @price
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



11
12
13
14
15
16
17
# File 'lib/agrid_client/models/sale.rb', line 11

def self.attribute_map
  {
    :'price' => :'price',
    :'expiration_date' => :'expiration_date',
    :'note' => :'note',
  }
end

.swagger_typesObject

Attribute type mapping.



20
21
22
23
24
25
26
# File 'lib/agrid_client/models/sale.rb', line 20

def self.swagger_types
  {
    :'price' => :'Float',
    :'expiration_date' => :'DateTime',
    :'note' => :'String',
  }
end