class BitFlyer::Models::BoardState
Attributes
health[R]
state[R]
Public Class Methods
new(attrs = {})
click to toggle source
# File lib/bit_flyer/models/board_state.rb, line 6 def initialize(attrs = {}) @attrs = attrs @health = attrs['health'] @state = attrs['state'] end
Public Instance Methods
data()
click to toggle source
# File lib/bit_flyer/models/board_state.rb, line 12 def data @data ||= @attrs['data'].present? ? BitFlyer::Models::BoardStates::Data.new(@attrs['data']) : nil end