Class: Tastytrade::Models::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/tastytrade/models/base.rb

Overview

Base class for all Tastytrade data models

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data = {}) ⇒ Base

Returns a new instance of Base.



9
10
11
12
# File 'lib/tastytrade/models/base.rb', line 9

def initialize(data = {})
  @data = stringify_keys(data)
  parse_attributes
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



14
15
16
# File 'lib/tastytrade/models/base.rb', line 14

def data
  @data
end