Class: Teams::Api::Model
- Inherits:
-
Object
- Object
- Teams::Api::Model
- Defined in:
- lib/teams/api/model.rb
Direct Known Subclasses
Account, ActivityValue, ChannelData, ChannelInfo, CitationAppearance, ConversationAccount, ConversationResource, Meeting, MeetingInfo, MeetingNotificationRecipientFailure, MeetingNotificationResponse, MeetingParticipant, NotificationInfo, PagedMembersResult, QuotedReplyData, QuotedReplyEntity, SignInUrlResponse, TeamDetails, TeamInfo, TenantInfo, TokenExchangeResource, TokenPostResource, TokenResponse, TokenStatus
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(raw = {}) ⇒ Model
constructor
A new instance of Model.
- #to_h ⇒ Object
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
#raw ⇒ Object (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_h ⇒ Object
12 13 14 |
# File 'lib/teams/api/model.rb', line 12 def to_h raw.dup end |