Class: Rafflesia::EpisodeOrigin
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::EpisodeOrigin
- Defined in:
- lib/rafflesia/episodes/episode_origin.rb
Constant Summary collapse
- HASH_ATTRS =
{ api_key_id: :api_key_id, auth_method: :auth_method, credential_id: :credential_id, user_id: :user_id }.freeze
Instance Attribute Summary collapse
-
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
-
#auth_method ⇒ Object
Returns the value of attribute auth_method.
-
#credential_id ⇒ Object
Returns the value of attribute credential_id.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ EpisodeOrigin
constructor
A new instance of EpisodeOrigin.
Constructor Details
#initialize(json) ⇒ EpisodeOrigin
Returns a new instance of EpisodeOrigin.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/episodes/episode_origin.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @api_key_id = hash[:api_key_id] @auth_method = hash[:auth_method] @credential_id = hash[:credential_id] @user_id = hash[:user_id] end |
Instance Attribute Details
#api_key_id ⇒ Object
Returns the value of attribute api_key_id.
15 16 17 |
# File 'lib/rafflesia/episodes/episode_origin.rb', line 15 def api_key_id @api_key_id end |
#auth_method ⇒ Object
Returns the value of attribute auth_method.
15 16 17 |
# File 'lib/rafflesia/episodes/episode_origin.rb', line 15 def auth_method @auth_method end |
#credential_id ⇒ Object
Returns the value of attribute credential_id.
15 16 17 |
# File 'lib/rafflesia/episodes/episode_origin.rb', line 15 def credential_id @credential_id end |
#user_id ⇒ Object
Returns the value of attribute user_id.
15 16 17 |
# File 'lib/rafflesia/episodes/episode_origin.rb', line 15 def user_id @user_id end |