class Spaceship::Tunes::B2bOrganization
Attributes
dep_customer_id[RW]
@return (String
) customer id
dep_organization_id[RW]
@return (String
) organization id
name[RW]
@return (String
) organization name
type[RW]
@return (String
) add or remove
Public Class Methods
from_id_info(dep_id: nil, dep_org_id: nil, dep_name: nil, type: TYPE::NO_CHANGE)
click to toggle source
# File spaceship/lib/spaceship/tunes/b2b_organization.rb, line 31 def self.from_id_info(dep_id: nil, dep_org_id: nil, dep_name: nil, type: TYPE::NO_CHANGE) self.new({ "value" => { "type" => type, "depCustomerId" => dep_id, "organizationId" => dep_org_id, "name" => dep_name } }) end
Public Instance Methods
==(other)
click to toggle source
# File spaceship/lib/spaceship/tunes/b2b_organization.rb, line 35 def ==(other) other.class == self.class && other.state == self.state end
Also aliased as: eql?
hash()
click to toggle source
# File spaceship/lib/spaceship/tunes/b2b_organization.rb, line 45 def hash state.hash end
state()
click to toggle source
# File spaceship/lib/spaceship/tunes/b2b_organization.rb, line 39 def state return [type, dep_customer_id, name] end