class Cronofy::Credentials::LinkingProfile
Attributes
profile_id[R]
profile_name[R]
provider_name[R]
Public Class Methods
new(hash)
click to toggle source
# File lib/cronofy/types.rb, line 12 def initialize(hash) @provider_name = hash['provider_name'] || hash[:provider_name] @profile_id = hash['profile_id'] || hash[:profile_id] @profile_name = hash['profile_name'] || hash[:profile_name] end
Public Instance Methods
==(other)
click to toggle source
# File lib/cronofy/types.rb, line 26 def ==(other) case other when LinkingProfile self.provider_name == other.provider_name && self.profile_id == other.profile_id && self.profile_name == other.profile_name end end
to_h()
click to toggle source
# File lib/cronofy/types.rb, line 18 def to_h { provider_name: provider_name, profile_id: profile_id, profile_name: profile_name, } end