Class: PixiClient::Requests::ReadItems

Inherits:
Base
  • Object
show all
Defined in:
lib/pixi_client/requests/read_items.rb

Constant Summary

Constants inherited from Base

Base::FIVE_MINUTES, Base::TIME_STRING_FORMAT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(created_from, created_to) ⇒ ReadItems

Returns a new instance of ReadItems.



6
7
8
9
# File 'lib/pixi_client/requests/read_items.rb', line 6

def initialize(created_from, created_to)
  self.created_from = created_from
  self.created_to = created_to
end

Instance Attribute Details

#created_fromObject

Returns the value of attribute created_from.



4
5
6
# File 'lib/pixi_client/requests/read_items.rb', line 4

def created_from
  @created_from
end

#created_toObject

Returns the value of attribute created_to.



4
5
6
# File 'lib/pixi_client/requests/read_items.rb', line 4

def created_to
  @created_to
end

Instance Method Details

#api_methodObject



11
12
13
# File 'lib/pixi_client/requests/read_items.rb', line 11

def api_method
  :pixi_read_items
end

#messageObject



15
16
17
18
19
20
# File 'lib/pixi_client/requests/read_items.rb', line 15

def message
  {
    'CreateDateFrom' => created_from.strftime(TIME_STRING_FORMAT),
    'CreateDateTo' => created_to.strftime(TIME_STRING_FORMAT)
  }
end