Class: Teams::Api::Model

Inherits:
Object
  • Object
show all
Defined in:
lib/teams/api/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw = {}) ⇒ Model

Returns a new instance of Model.



8
9
10
# File 'lib/teams/api/model.rb', line 8

def initialize(raw = {})
  @raw = normalize_hash(raw)
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



6
7
8
# File 'lib/teams/api/model.rb', line 6

def raw
  @raw
end

Instance Method Details

#to_hObject



12
13
14
# File 'lib/teams/api/model.rb', line 12

def to_h
  raw.dup
end