Class: BitexApiWrapper::Order

Inherits:
Struct
  • Object
show all
Defined in:
lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method_name, *args, &block) ⇒ Object



12
13
14
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 12

def method_missing(method_name, *args, &block)
  raw.respond_to?(method_name) ? raw.send(method_name, *args, &block) : super
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def amount
  @amount
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def id
  @id
end

#priceObject

Returns the value of attribute price

Returns:

  • (Object)

    the current value of price



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def price
  @price
end

#rawObject

Returns the value of attribute raw

Returns:

  • (Object)

    the current value of raw



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def raw
  @raw
end

#timestampObject

Returns the value of attribute timestamp

Returns:

  • (Object)

    the current value of timestamp



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def timestamp
  @timestamp
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



4
5
6
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 4

def type
  @type
end

Instance Method Details

#respond_to_missing?(method_name, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/bitex_bot/models/api_wrappers/bitex/bitex_api_wrapper.rb', line 16

def respond_to_missing?(method_name, include_private = false)
  raw.respond_to?(method_name) || super
end